Add containment icons to scope visualizer#3085
Merged
AndreasArvidsson merged 14 commits intomainfrom Sep 11, 2025
Merged
Conversation
selected category to scope visualizer
Member
|
Interesting idea. Could maybe be accomplished without adding a new section by just adding an emoji next to each scope description? Something like:
These could be combined if multiple apply (ie if your selection contains a function and is also contained by a function it would be 🪆📦) I don't think sorting would be necessary because these would be really easy for your eye to pick up and then we preserve alphabetical (Thanks to ChatGPT for help picking emojis |
Member
Author
|
I'm not sure. My first thought was to have an icon like that, but then I start thinking that the sorting is actually quite useful. |
Member
Author
selected category to scope visualizer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The new category shows all scopes that intersect with your current selection. Scopes smaller than the current selection are excluded and then sorted by smallest first. The result is that the scopes at the top are the ones that match your current selection the best. If you're ever interested in different ways of targeting a particular text you just need to select that and see which scopes match.
I'm not sure about the name/label. Any suggestions for something better than
Selected?