-
Notifications
You must be signed in to change notification settings - Fork 95
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
Support qualified names in workspace/symbol #31
Comments
normally this works, just not in a user friendly way ... First of all, the match needs to be exact, so you should start from most outer namespace if there are any. In addition to that matching (for the scope) is case sensitive :/ For example for a symbol like
one has to exactly type So in your case, searching for I suppose making scope matching use suffix match rather than an exact match should be relatively easy. 1: storing same symbol in multiple places, e.g. |
I did try this, and it does not work for me. The query |
Hmm, that's interesting. Could you provide the full logs? Normally I get: That's what the query looks like:
Maybe vscode (or whatever editor/plugin you are using) is sending a different query somehow? |
I'm using vscode. The logs show that clangd is sending back results, but vscode is... ignoring them? For example, for this test file:
If I invoke "Go to Symbol in Workspace" and enter the query
which looks like the expected result, but vscode just shows "No matching workspace symbols". |
I suspect this is a similar issue that we encountered in the code completion -- looks like VSCode applies the fuzzy match only on symbol.name, so in your case, the query token is not sure this is by design in VSCode, I think we could do the same hack in our vscode extension to make it support qualified name. |
Currently, a query like
Class::Method
does not return any results, but it would be useful if it did. The alternatives of searching forClass
and then manually navigating toMethod
within the class, or searching forMethod
and choosing among potentially many classes that declare a method with that name, are more labour-intensive.The text was updated successfully, but these errors were encountered: