Get All Workspace Symbols if search string is empty #5556
Replies: 2 comments
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
-
This is also an issue with pyright. I am writing this as a follow up to microsoft/pyright#9305. Based on the spec (WorkspaceSymbolParams) for query parameter:
But the implementation is directly ignoring the spec.
QuestionWhat should I do in this case if I want the full list, and I acknowledge that it might be too big? Would it be possible to return the full list for the empty query, for users that opt-in (for example via config)? So that you can at least opt-in to spec compliant behavior? My motivation:When searching for a symbol in the workspace, I would like to use filtering (fuzzy matching) from my editor, instead of the non-fuzzy matching of the query (which causes inconvenience when searching for symbols). |
Beta Was this translation helpful? Give feedback.
-
The vscode.executeWorkspaceSymbolProvider is not returning all workspace symbols if query (search string) is empty when pylance is used as python language server. This is useful for getting all symbols in the workspace.
Beta Was this translation helpful? Give feedback.
All reactions