Mark same-file definitions in semantic tokens
The server legend gains a declaration modifier, and EditorDiagnostics emits the definition-name token with it when the definition lies in the same document. No type token is emitted because the canonical type has no source span. Registered tests cover modifier encoding and the overlap rule; a real stdio session showed the modifier on both definition names.
This commit is contained in:
1 parent
2cced8363d
commit
816c38da1e
7 files changed
+54
-10
No files matched your search
@@ -79,6 +79,22 @@ the upgraded snapshot (keeping `snapshot.prev.json`) and rewrites a legacy
|
||||
about 25-30s in a Debug build (it passed VBS at ~27s); the full CMake run then
|
||||
passed 18/18.
|
||||
|
||||
## December 5 declaration tokens in semantic tokens
|
||||
|
||||
The semantic-token slice now also emits the definition-name token when the
|
||||
definition is in the same document, carrying the advertised `declaration`
|
||||
modifier; the legend gained that modifier. The canonical type has no source
|
||||
span, so no type token is emitted rather than one placed on unrelated text.
|
||||
Registered `vls_feature_tests` cases cover modifier preservation, encoding and
|
||||
the overlap rule (90 cases).
|
||||
|
||||
Real stdio session with `inner`/`outer` in one file:
|
||||
```
|
||||
semanticTokens: [(0, 4, 5, 1), (1, 4, 5, 1), (1, 21, 5, 0), (1, 31, 5, 0), (2, 20, 5, 0)]
|
||||
```
|
||||
The first two entries are the definition names with the declaration modifier.
|
||||
All 18 native suites and all 18 CMake tests passed.
|
||||
|
||||
## December 5 return-type inlay hints
|
||||
|
||||
`include/vls/features/InlayHints.hpp` gained `call_end` (the offset past the
|
||||
|
||||
Reference in new issue
Block a user