-
Notifications
You must be signed in to change notification settings - Fork 123
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
Improve outline view #25
Comments
This isn't really supported in the current specification. Also see microsoft/language-server-protocol#327 and its many referenced issues and so on. /**
* The name of the symbol containing this symbol. This information is for
* user interface purposes (e.g. to render a qualifier in the user interface
* if necessary). It can't be used to re-infer a hierarchy for the document
* symbols.
*/
containerName?: string; |
Notice that the parent name is not enough. See discussion in facebookarchive/atom-ide-ui#121 and facebookarchive/atom-ide-ui#121 (comment) in particular for the summary. TL;DR: LSP doesn't allow you to rely on |
@laughedelic Thanks a lot, that was super helpful 👍 I've opened a PR #31 now which seems to do the trick in both Atom and Code. I will probably merge if early next week and cut a release with some other new features as well :) |
We won't improve the outline view further until it's a proper part of the LSP definition. |
Currently the outline view simply shows a flat list of all symbols in the file. I believe that you can get a hierarchical view if you return a bit more information (I think it's the name of the parent)
The text was updated successfully, but these errors were encountered: