Offer compiler quick fixes as code actions

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.
This commit is contained in:
faumaray committed 2026-12-05 15:03:21 +03:00
1 parent 624c24d028
commit 946b1a005e
15 files changed
+418 -10

No files matched your search

+5 -4
View File
@@ -18,6 +18,7 @@ missing part.
| 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` |
@@ -28,7 +29,7 @@ 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/codeAction, formatting | compiler-backed; needs a plan |
| textDocument/formatting | needs a plan |
| textDocument/semanticTokens, inlayHint | larger
| textDocument/codeLens, executeCommand | command surface not designed |
| callHierarchy / typeHierarchy | needs compiler call/type relationships |
@@ -38,6 +39,6 @@ missing part.
## Next slices
1. codeAction quick fixes from published diagnostics.
2. Semantic tokens from stock occurrences.
3. Formatting and inlay hints.
1. Semantic tokens from stock occurrences.
2. Formatting and inlay hints.
3. call/type hierarchy and code lens.