Serve selection and folding ranges over LSP
A bounded snapshot-only core (vls/features/TextStructure.hpp) builds nested selection chains (identifier, line, enclosing blocks, document) and foldable regions (brace blocks, comments, preprocessor pairs, include groups) while ignoring literals. The server advertises and serves textDocument/selectionRange with bounded positions and textDocument/foldingRange through EditorDiagnostics; registered vls_feature_tests cases cover both.
This commit is contained in:
1 parent
8ca3dcbf74
commit
624c24d028
12 files changed
+601
-8
No files matched your search
@@ -17,6 +17,7 @@ missing part.
|
||||
| textDocument/signatureHelp | `vls_feature_tests`, real stdio session |
|
||||
| textDocument/documentSymbol | `vls_index_tests` path query, real stdio session |
|
||||
| textDocument/documentHighlight | `vls_feature_tests`, real stdio session |
|
||||
| textDocument/selectionRange, foldingRange | `vls_feature_tests`, real stdio session |
|
||||
| workspace/symbol | stock occurrence corpus |
|
||||
| voidLanguageServer/analysisStatus, providerStatus | stdio corpora |
|
||||
| Debug adapter (DAP) separately through `vls-dap` | `vls_live_tests`, `vls_dap_tests` |
|
||||
@@ -27,7 +28,6 @@ missing part.
|
||||
| --- | --- |
|
||||
| Compiler-native completion with visibility proof | index-backed completion is explicitly incomplete |
|
||||
| Overload-set signature help | only the selected occurrence's signature is available |
|
||||
| textDocument/selectionRange, foldingRange | straightforward next slices |
|
||||
| textDocument/codeAction, formatting | compiler-backed; needs a plan |
|
||||
| textDocument/semanticTokens, inlayHint | larger
|
||||
| textDocument/codeLens, executeCommand | command surface not designed |
|
||||
@@ -38,6 +38,6 @@ missing part.
|
||||
|
||||
## Next slices
|
||||
|
||||
1. selectionRange and foldingRange from document snapshots.
|
||||
2. codeAction quick fixes from published diagnostics.
|
||||
3. Semantic tokens from stock occurrences.
|
||||
1. codeAction quick fixes from published diagnostics.
|
||||
2. Semantic tokens from stock occurrences.
|
||||
3. Formatting and inlay hints.
|
||||
Reference in new issue
Block a user