-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Restore type based global symbole filtering for Ctrl+P #8502
Comments
If we do it lets make this change in TypeScript. With globally filtering symbols for each and every provider we break scenarios for languages that don't happen to use any of our hand picked highly biased TypeScript symbol kinds. |
@jrieken that was the idea. @dbaeumer is looking into that. To not break too much API we would introduce a containerName to the returned symbols and not show a symbol if the container name is provided (at least for the Cmd+P case). Rationale is to not show any symbols that are not global. This should work nicely for other languages too. |
@bpasero You mean the existence of container name as in not falsy as a hint for not being global? It does sound better I don't know if that works for all languages... If this is an issue we should add symbol kind filter to the provider (https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L1784) |
@jrieken yeah, the idea being that Cmd+P is for top level symbols (classes, global functions) and Cmd+T is for any symbol whatsoever. Doing this via container name would be a change without API breakage. |
As discussed with @bpasero the filtering in TS can only be done if TS knows what to filter for. There are use cases where the user wants to see only 'global' symbols and where he wants to see all symbols. If the container name is not working then we could either add an additional flag to the workspaceSymbolProvider or have two distinct providers. I would opt to have options / flags. |
Anything works for me 👍 |
@bpasero we discussed this. for details see: #8013
The text was updated successfully, but these errors were encountered: