Add a compiler-independent document outline
A bounded scanner recognizes namespace, class/struct, enum and function declarations at line starts from document text alone, skipping preprocessor lines, comments and control statements. documentSymbol merges it with observer-fed index records, so the generic path has a real outline with no compiler-specific artifact. Registered feature tests cover recognition, call exclusion, comments, ranges and bounds; the generic stdio session returned main as a function symbol.
This commit is contained in:
1 parent
5598371fcb
commit
103b38a291
8 files changed
+313
-3
No files matched your search
@@ -61,6 +61,25 @@ start coordinate only, so ranges are zero-width until an end is available.
|
||||
LSP adapters and index/rename/debugging integration remain open. `vbs test`
|
||||
passed all 17 native suites; CMake passed the reflection and trace suites.
|
||||
|
||||
## December 6 generic document outline
|
||||
|
||||
`include/vls/features/Outline.hpp` adds a compiler-independent outline: a
|
||||
bounded, conservative scanner recognizes namespace, class/struct, enum and
|
||||
function declarations at line starts, skipping preprocessor lines, comments and
|
||||
control statements, and never reporting a bare call statement as a function.
|
||||
`EditorDiagnostics::document_symbols` merges it (deduplicated by name and
|
||||
position) with the observer-fed index records, so the generic path has a real
|
||||
outline without any compiler-specific artifact.
|
||||
|
||||
In the D-032 session (plain compilation database, no observer):
|
||||
```
|
||||
documentSymbol: [('main', 12)]
|
||||
selectionRange served: True
|
||||
hover error: -32601
|
||||
```
|
||||
Registered `vls_feature_tests` grew to 109 cases. All 18 native suites and all
|
||||
18 CMake tests passed.
|
||||
|
||||
## December 6 generic-compiler degradation (D-032)
|
||||
|
||||
With a plain compilation database and no occurrence observer, the server
|
||||
|
||||
Reference in new issue
Block a user