-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Symbol search for symbol in dependency #13938
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
Comments
The workspace symbol search supports this, see the manual. In non-VSCode editors, you can just type |
(Sorry for hijacking but) regarding VSCode I wonder if we can just overwrite the whole symbol search infra, given we can inject middlewares, to get around VSCode stripping symbols for no reason 🤔 That is we sent the corresponding request ourselves instead. |
Did we ever report/ask the VSCode team about the symbol stripping, by the way? |
I don't think so, also my |
I wish I would have seen this years ago! Finding symbols in dependencies, with VSCode, has been sorely missed. Changing One challenge that I've found is that the fuzzy search makes it hard to find items with common names, especially in the standard library. For example, searching for |
No, VSCode doesn't let us customize the search at all. There is logic for this kind of stuff in the server but VSCode strips any non alphabetic characters from the query before it hands it to the server. So we can make this work for other editors, but not VSCode. |
@Veykril Apparently no! VSCode only strips |
Huh I could swear I checked |
Ah I was misremembering the exact behavior, we do get the full query, but VSCode does some weird filtering on the results wrt to the query string microsoft/vscode#171320 |
So after implementing searching for |
Update: I implemented a fix in VSCode, but it has some bad scoring - e.g. when I search for |
There is value in landing this either way, at least for other editors that don't do weird scoring like vscode |
I have it implemented (without tests though, I tested it manually), but I don't like the idea of shipping something that the majority of our users (including me) cannot use. I prefer to wait to see what happens with my LSP suggestion (why BTW is here). |
I frequently find myself wanting to explore the source of a dependency in order to understand how to use it. Go to definition works great for this if I have code that references the thing I want to explore, but sometimes I don't. For this usecase, I want to use go to symbol instead. A viable alternative is to search for the name of the symbol using autocomplete, then use go to definition from there, but this is an extra step.
The text was updated successfully, but these errors were encountered: