nushell/crates/nu-lsp/src
zc he 70d8163181
fix(lsp): more accurate command name highlight/rename (#15540)
# Description

The `command` version of #15523 

# User-Facing Changes

Before:

<img width="394" alt="image"
src="https://github.com/user-attachments/assets/cdd1954d-c120-4aa4-8625-8a0f817ddebf"
/>

After:

<img width="431" alt="image"
src="https://github.com/user-attachments/assets/66fa17cd-2e6f-4305-a08a-df1c1617cfe8"
/>

And the renaming of that command finally works as expected.

Of course the identification of module prefixes in command calls is
still missing. I kinda feel there's no power-efficient way to do it.
I'll put low priority to that feature.

# Tests + Formatting

+1

# After Submitting
2025-04-10 06:26:43 -05:00
..
ast.rs fix(lsp): more accurate command name highlight/rename (#15540) 2025-04-10 06:26:43 -05:00
completion.rs fix(lsp): several edge cases of inaccurate references (#15523) 2025-04-09 21:15:35 -05:00
diagnostics.rs fix(lsp): more accurate PWD: from env -> parent dir of current file (#15470) 2025-04-05 08:41:34 -05:00
goto.rs fix(lsp): several edge cases of inaccurate references (#15523) 2025-04-09 21:15:35 -05:00
hints.rs fix(lsp): several edge cases of inaccurate references (#15523) 2025-04-09 21:15:35 -05:00
hover.rs fix(lsp): several edge cases of inaccurate references (#15523) 2025-04-09 21:15:35 -05:00
lib.rs fix(lsp): several edge cases of inaccurate references (#15523) 2025-04-09 21:15:35 -05:00
notification.rs fix(lsp): several edge cases of inaccurate references (#15523) 2025-04-09 21:15:35 -05:00
semantic_tokens.rs fix(lsp): several edge cases of inaccurate references (#15523) 2025-04-09 21:15:35 -05:00
signature.rs refactor(lsp): align markdown doc string with output of --help (#15508) 2025-04-06 08:37:59 -05:00
symbols.rs fix(lsp): several edge cases of inaccurate references (#15523) 2025-04-09 21:15:35 -05:00
workspace.rs fix(lsp): more accurate command name highlight/rename (#15540) 2025-04-10 06:26:43 -05:00