Skip to content

Document symbol container name #1234

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

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

Successfully merging this pull request may close these issues.

1 participant