Repository navigation
feat(picker): add symbol tree guides and aligned locations - #333
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
#331 preserved long symbol names, but document symbols still appear as a flat list and their
line:columnvalues cluster beside the longest name. That hides real symbol hierarchy and makes positions difficult to scan, especially beside the source preview.What changed
├╴,└╴, and│guides from actual document-symbol parent IDs, with cached ancestry, correct async-batch invalidation, and ASCII fallbacks.[picker] tree_guides = true. Disabling it hides only the guides; aligned positions remain, and workspace symbols always stay flat.How to Test
implmethods or modules and symbols on both short and three-digit line numbers. Invoke Document Symbols withCtrl-t; expect real hierarchy connectors, vertically aligned colons and column numbers, and a position gutter that ends exactly at the preview divider.[picker] tree_guides = false, reopen Red, and invoke Document Symbols again. Expect a flat list with the same aligned position gutter. Open Workspace Symbols and confirm it remains flat and still includes file paths.[picker.icons] style = "ascii"and reopen Document Symbols; expect|-and`-connectors instead of Unicode box-drawing characters.cargo test --lib document_symbol,cargo test --lib picker_tree_guides, andcargo test --test lsp_lazy --test self_check; expect the hierarchy, configuration, LSP, and bundled-plugin checks to pass.Validated locally with 2,399 passing library tests, 48 LSP integration tests, both bundled-plugin checks, the 12,000-file picker benchmark, and warning-free all-target/all-feature Clippy.