Skip to content
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

Closed
dbaeumer opened this issue Jun 29, 2016 · 6 comments
Closed

Restore type based global symbole filtering for Ctrl+P #8502

dbaeumer opened this issue Jun 29, 2016 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority search Search widget and operation issues verified Verification succeeded
Milestone

Comments

@dbaeumer
Copy link
Member

@bpasero we discussed this. for details see: #8013

@bpasero bpasero added this to the June 2016 milestone Jun 29, 2016
@bpasero bpasero self-assigned this Jun 29, 2016
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug search Search widget and operation issues and removed bug Issue identified by VS Code Team member as probable bug labels Jun 29, 2016
@jrieken
Copy link
Member

jrieken commented Jun 29, 2016

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.

@bpasero
Copy link
Member

bpasero commented Jun 29, 2016

@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.

@jrieken
Copy link
Member

jrieken commented Jun 29, 2016

@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)

@bpasero
Copy link
Member

bpasero commented Jun 30, 2016

@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.

@dbaeumer
Copy link
Member Author

dbaeumer commented Jun 30, 2016

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.

@bpasero bpasero added the important Issue identified as high-priority label Jun 30, 2016
@bpasero
Copy link
Member

bpasero commented Jun 30, 2016

Anything works for me 👍

@bpasero bpasero assigned isidorn and unassigned bpasero Jun 30, 2016
@bpasero bpasero added the bug Issue identified by VS Code Team member as probable bug label Jun 30, 2016
@dbaeumer dbaeumer added the verified Verification succeeded label Jul 1, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority search Search widget and operation issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants