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

Document symbol container name #1234

Open
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

ANtlord
Copy link

@ANtlord ANtlord commented Sep 18, 2021

This is rather a proposal within demo than a pull request. It adds containerName into the text which is shown in a document symbols list. It improves user experience as one can see where a symbol from. In the screenshots you can see that a couple structures can have the same function just implementing one trait. The similar experience is writing Python. A couple of class can have __init__ method so in symbols you can't see which class the selected constructor for.

I'm not sure about where to place containerName in a symbol list's item, so I'm open to suggestions. Currently I decided to add it as a prefix with :: as a divisor. I didn't find a convinient way to make it as an option in settings.

Take a look at the screenshots.

before
after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant