-
Notifications
You must be signed in to change notification settings - Fork 845
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
Add support for querying workspace symbols and filtering by kind #941
Comments
I like this. @jrieken have you heard about such a request in the light of the VS Code API? |
No, nothing like this has been requested in VSCode and for us it would be more of a UX challenge of how to entering such a filter |
Thinking about this some more, I think a general key, value list of options would be reasonable to pass in general.
I'm sure there are more ideas. But a general purpose symbol querying mechanism seems useful for the LSP. |
Yes please, this is one of the things I miss most coming from IntelliJ. I've hacked this on for rust-analyzer using IntelliJ uses the following filters, which seems reasonable:
UI-wise, I'd expect a set of checkboxes with alt-mnemonics below the widget for common filters, plus maybe some free-way advanced query syntax, for cases like "I want to find all public functions with name starting with set_ in descendatns of |
fyi @bpasero - we recently talked about this |
@lanza This seemed like a good request. Why close this? |
Searching+Filtering for all symbols can take a significant and unexpected amount of time, if the language is not strongly typed. |
Not really: filtering is typically based on syntactic type (is this syntactically a function, a class, etc). Language typing rules or lack thereof are orthogonal to the discussed feature. |
It would be nice to be able to filter
WorkspaceSymbols
by kind instead of just by query string. Most LSPs implement thequery
as some sort of search over the symbol name. If you are specifically looking for an class type, for example,WorkspaceSymbols
provides mostly noise.The text was updated successfully, but these errors were encountered: