Open rowillia opened 3 months ago
The JSON keys showing up actually is the correct behaviour I believe -- there is valid JSON embedded in the Markdown document which gets picked up by the markdown tree-sitter embedding rules. However, comparing to the outline of zed's settings file, the hierarchy of JSON keys looks broken here. "hints" should be at the top and the rest until "rangeVariableTypes" should be indented under it..
I agree with @jansol - Zed is pretty aware of code embedded in markdown, so it treats it as such. I'll leave this issue open regardless because of issues mentioned by Jansol.
cc: @SomeoneToIgnore
Check for existing issues
Describe the bug / provide steps to reproduce it
docs/src/languages/go.md
in the Zed repo in ZedAlso: Note that I would expect the outline view to follow the same hierarchy as the document (e.g.
Inline Hints
would be nested underGo
)Environment
Zed: v0.145.1 (Zed) OS: macOS 14.5.0 Memory: 32 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
If applicable, attach your Zed.log file to this issue.
Zed.log