project_symbols: Display line numbers in symbol picker (#46507)
Shuhei Kadowaki
and
Matt Miller
created
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.
> Before
<img width="671" height="573" alt="Screenshot 2026-01-10 at 19 21 08"
src="https://github.com/user-attachments/assets/838c3eb7-0e1d-46ba-9076-286e971afc2c"
/>
> After
<img width="671" height="573" alt="Screenshot 2026-01-10 at 19 43 19"
src="https://github.com/user-attachments/assets/31979d79-0169-4202-afc2-24fc7492dd47"
/>
Closes #ISSUE
Release Notes:
- Added line numbers to the project symbols picker to help distinguish
between symbols with the same name
---------
Co-authored-by: Matt Miller <mattrx@gmail.com>