Is there any way to display Rust impl
blocks in outline panel?
#22283
Unanswered
glebpinigin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently outline block for rust code doesn't display
impl
blocks that "owns" method definitions.In the image you can see that there is a structure and 3 functions defined in source file.
What this outline doesn't display is that
a) Functions are defined in structure implementation
b) Functions implement different traits
c) The order of implementations is a little bit messed up
Second image is the reference from VSCode where all three above things are displayed
The question is: is it possible to configure Zed's outline to display any of this things?
It is unclear for me whether this details about
impl
blocks should come from tree-sitter or from lsp. I think if none of mentioned features are currently available, this information might be important for understanding possibility of these to be implemented. AFAIK implementing new features on top of interactions with LSP is more difficult.Beta Was this translation helpful? Give feedback.
All reactions