fix(treesitter): deduplicate repeated breadcrumb symbols#271
Open
disrupted wants to merge 21 commits intoBekaboo:masterfrom
Open
fix(treesitter): deduplicate repeated breadcrumb symbols#271disrupted wants to merge 21 commits intoBekaboo:masterfrom
disrupted wants to merge 21 commits intoBekaboo:masterfrom
Conversation
bfb772e to
953f2b4
Compare
disrupted
commented
Feb 21, 2026
Contributor
Author
There was a problem hiding this comment.
I wasn't sure if real Treesitter parsers can be used in CI. using stubs for treesitter instead makes it more portable.
953f2b4 to
9475fc1
Compare
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.
When using the Treesitter source with nested mapping-style structures, dropbar often shows duplicated breadcrumb entries.
For example when using this Nickel configuration file
{ languages = { nu = { extensions = ["nu", "nuon"], grammar.source.git = { git = "https://github.com/nushell/tree-sitter-nu.git", rev = "bb3f533e5792260291945e1f329e1f0a779def6e", }, }, }, }the breadcrumbs can look like this:
I've implemented heuristics that resolve a lot of those issues which previously lead to incorrect or noisy breadcrumbs. Now it should be more concise and preserve real nesting.