-
Notifications
You must be signed in to change notification settings - Fork 43
Outliner is flat list, should be tree view #74
Comments
The story is a little messy here. I asked pretty much the same thing not long ago. The immediate cause is Rls not sending back the Muddying the mix; according to the protocol you aren't supposed to use Fixing rust-lang/rls#86 is likely the way forward. ide-rust itself is just the middle man here. |
Two comments in the issue below brought up the topic: atom/atom-languageclient#116 (comment)
atom/atom-languageclient#116 (comment)
First docs link on the protocol is no longer valid, docs for LSP are hosted here, currently v3.7 with the same text as first quoted comment. Python Language Server has taken an approach to get a hierarchy as the linked issue discusses, merged PR here: palantir/python-language-server#176
That's the exact same issue/comment I linked to :P It's unfortunate if the information available to atom-ide-rust is not enough to better display the outline as it's not so useful of a tool as it is. My current project fills the list with constants, enums and structs with values/fields, the latter which might be possible to nest to their enum/struct if the information is there. |
Thanks, this is a useful collection of the relevant info. Ultimately |
We have a clearer idea of the changes needed to rls to achieve this now rust-lang/rls#86 (comment). |
That's great news! :) Looking forward to an improved outliner! |
ide-rust has moved to using rust-analyzer instead of RLS. I'll close this issue for now, please open a new issue relating to rust-analyzer improvements. |
On the Atom IDE page, the outline view not only has some colouring, but items in the list are nested where appropriate. In my current file, a struct is listed with it's properties below it, but with no nesting, they're all presented at the same top level?
This enhancement was mentioned in a previous issue: #58 (comment) about filtering out local variables.
The text was updated successfully, but these errors were encountered: