-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
executeWorkspaceSymbolProvider should accept empty string #39522
Comments
No, not without some sample code |
I have added a code snippet. Sorry :) |
Yeah... That's how it is in our tests: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/test/electron-browser/api/extHostApiCommands.test.ts#L187. Maybe one of your extensions? |
@jrieken Sorry, I'm not following. I assume that its not possible to query all symbols then? Similar to how cmd+t does it? |
You sample looks legit and this is how we test the code. Yes, the command is more or less what the UI calls so everything should work. However, there is always the chance of an extension throwing errors. What again is the exact error you are seeing? |
This is everything I have tried:
This returns Next I tried:
This throws error:
Do you think its the omnisharp extension throwing an error? How does the |
Maybe... I don't find this error in our source code. So, either you are on ancient version of VS Code (please try insiders) or this is from an extension (try with |
@jrieken I created an issue with Omnisharp and they seem to have found the error in VS code: dotnet/vscode-csharp#1904 |
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. Happy Coding! |
There actually is an issue on our side and that's about the empty string. It should pass the string-constraint but doesn't |
Awesome! I have resorted to a bit of a filthy hack in the interim... |
Steps to Reproduce:
I would like to prompt the user, from my extension, to select a symbol from the workspace for further processing. I don't have any filter text at this point so would like to show all symbols. I cant seem to get a list of unfiltered symbols using executeWorkspaceSymbolProvider... I need similar functionality to whats available in "Go To Symbol in Workspace...".
Any idea why this does not work?
Example code below. Executing this will result in a zero length array. I cant find any filter value that works as a wildcard.
if I change the filter above to "Service" for example, I get all the coorect results as I would expect:
The text was updated successfully, but these errors were encountered: