-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API to trigger a refresh of the OUTLINE (DocumentSymbols) #108722
Comments
Not sure if a "refresh" command for the view is the only way to implement it, but I can see the need. |
Up |
1.67.1 still too slow for C/C++ outline |
I can think of two ways to do this.
Option two might be a better choice given that, extensions can decide when to refresh based on the context. |
@jrieken You mention in the PR that there is no need for a way to refresh the outline as it is done automatically when the document is touched. However, there are several cases where we might want to refresh even if the document is not changed:
Those are just two examples where we might need a way to refresh the outline without touching the document, I am sure there are a lot more use cases... |
@jrieken We have need of a refresh like this for |
I concur with the OP, and our use case is very similar to theirs. We deal with code that has lots of variables and types, so our extension also supports settings like showing/hiding variables in the outline, and deciding whether or not to filter by type (or just call them all Variable). Once a setting is toggled, the outline needs to be refreshed to respond to the change in settings. In the Extension Host, it appears the DocumentSymbolProvider is called whenever you switch between files in the editor. It just seems like the outline view doesn't recognize the new list of symbols. |
I recreate the issue #71454 because it was closed.
My need is that I have a XML Language Server which supports settings for configuring symbols (like show/hide XML attributes, XML text nodes in the outline). When those settings are saved, I would like to refresh the outline.
If vscode could provide a command to refresh this outline, it should be great!
Thanks!
The text was updated successfully, but these errors were encountered: