Decode GCC SARIF fixes into bounded diagnostic edits through the same physical-origin policy as locations; unprovable regions are dropped. A bounded projection filters fixes to the requested range, deduplicates and bounds them, and textDocument/codeAction serves them from retained published diagnostics. Registered tests cover the SARIF binding and the projection; a real stdio session returned the compiler's Replace 'valu' with 'value' quickfix.
45 lines
2.3 KiB
Markdown
45 lines
2.3 KiB
Markdown
# LSP parity matrix
|
|
|
|
Target (user direction): clangd feature parity plus every LSP capability that
|
|
applies to a C++ language server. Status is evidence-based; `PARTIAL` names the
|
|
missing part.
|
|
|
|
## Implemented and verified
|
|
|
|
| Capability | Evidence |
|
|
| --- | --- |
|
|
| initialize / initialized / shutdown / exit | native transcripts and registered tests |
|
|
| textDocument sync (full + incremental, UTF-8/UTF-16) | document suite, real stdio corpora |
|
|
| publishDiagnostics (stock GCC, in-process default profile) | diagnostic suite, stdio corpus |
|
|
| textDocument/hover, definition | stock occurrence corpus |
|
|
| textDocument/references, prepareRename, rename | navigation suite, stock corpus refusals |
|
|
| textDocument/completion (+ completionItem/resolve) | `vls_feature_tests`, real stdio session |
|
|
| 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 |
|
|
| textDocument/codeAction (quickfix) | `vls_feature_tests` + `vls_diagnostic_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` |
|
|
|
|
## Open
|
|
|
|
| Capability | Notes |
|
|
| --- | --- |
|
|
| 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/formatting | needs a plan |
|
|
| textDocument/semanticTokens, inlayHint | larger
|
|
| textDocument/codeLens, executeCommand | command surface not designed |
|
|
| callHierarchy / typeHierarchy | needs compiler call/type relationships |
|
|
| workspace edits and file operations | client-side application is also open |
|
|
| Applying multi-file renames through client buffers | plans can be ready; application is client work |
|
|
| `EditorDiagnostics` reflection LSP wiring | the server has no reflection data source |
|
|
|
|
## Next slices
|
|
|
|
1. Semantic tokens from stock occurrences.
|
|
2. Formatting and inlay hints.
|
|
3. call/type hierarchy and code lens.
|