fix(lsp): regression of semantic tokens of module-prefixed commands (#15603)

# Description

Fixes a regression caused by #15567, where I made the space detection in
command names switched from `get_span_content` to `get_decl().name()`,
which is slightly faster but it won't work in some cases:

e.g.
```nushell
use std/assert
assert equal
```

Reverted in this PR.

# User-Facing Changes

None

# Tests + Formatting

Refined

# After Submitting
This commit is contained in:
zc he
2025-04-19 19:02:49 +08:00
committed by GitHub
parent a2dc3e3b33
commit 24dba9dc53
2 changed files with 11 additions and 6 deletions

View File

@ -13,3 +13,6 @@ export def "foo bar" [] {
foo bar
overlay use foo
use std/assert
assert equal