-
Notifications
You must be signed in to change notification settings - Fork 441
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
Outline doesn't display Java Elements hierarchically #560
Comments
After setting the container name of the root type to an empty string, and putting it in 1st position, yielding the following response:
the outline view still displays elements flatly. I compared to the output of the html server, and noticed the symbol locations covered the entire blocks. So After manually editing the response to:
it finally produced the expected hierarchical output. @aeschli @jrieken so is the |
We never specified what the range should cover and to properly support the outline tree new API is needed. We have just finalised that and will ship with the next release, see: microsoft/vscode#34968.
I wouldn't call it a hack, but there is logic to build a tree based on range containment. This works go enough for some extensions but doesn't replace the need for adoption of the new API. |
Closing as duplicate of #586, which has already been released |
Now that vscode embeds the outline view , with the following code:
document/documentSymbol
yields:Which results in a flat hierarchy:
The top container name should be the Type name, to be consistent (hopefully that would be enough, but there might be some other issues with duplicate containers)
The text was updated successfully, but these errors were encountered: