project_symbols: Display line numbers in symbol picker#46507
Merged
mattermill merged 2 commits intozed-industries:mainfrom Jan 12, 2026
Merged
project_symbols: Display line numbers in symbol picker#46507mattermill merged 2 commits intozed-industries:mainfrom
mattermill merged 2 commits intozed-industries:mainfrom
Conversation
Some language servers return local symbols in `workspace/symbol` responses, and languages like Julia can have multiple overloads for the same generic function name. In these cases, symbols may appear identical in the symbol picker, making it hard to distinguish between them. Adding line numbers helps users identify the correct symbol. In the future, we may also want to consider using `containerName` from the LSP response for additional context.
Contributor
|
@aviatesk Thanks for tackling this! Made a small change to differentiate the line number from the path. I was finding it difficult to parse the line number when scanning the list. |
Contributor
Author
Sounds good:) Thanks for your review. |
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.
Some language servers return local symbols in
workspace/symbolresponses, and languages like Julia can have multiple overloads for the same generic function name. In these cases, symbols may appear identical in the symbol picker, making it hard to distinguish between them. Adding line numbers helps users identify the correct symbol.In the future, we may also want to consider using
containerNamefrom the LSP response for additional context.Closes #ISSUE
Release Notes: