feat(lsp): quick fixes for the textflag include and the argument area
Test / test (push) Successful in 2m56s
Test / test (push) Successful in 2m56s
Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -254,7 +254,10 @@ document store, republishes diagnostics on every change, and provides:
|
||||
- **assists**: document formatting through the `format` package, inlay hints
|
||||
(the frame size after the TEXT argument area), signature help (the callee's
|
||||
`// func` signature while the cursor is on a `CALL`), and code actions
|
||||
offering quick fixes for the `missing-ret` and `unused-label` diagnostics.
|
||||
offering quick fixes for the `missing-ret` and `unused-label` diagnostics,
|
||||
the `missing-textflag-include` warning (the include after the last one in
|
||||
the file) and the `abi-argsize` warning (the argument area set to the size
|
||||
the `// func` signature implies).
|
||||
- **document information**: pull diagnostics (`textDocument/diagnostic`),
|
||||
#include document links (resolved against the document directory, then
|
||||
`$GOROOT/pkg/include`) and folding ranges (one collapsible region per
|
||||
|
||||
+4
-1
@@ -458,7 +458,10 @@ function bodies. Definition, references and rename work across every open
|
||||
document and the wider workspace on disk: the server indexes the `.s` files
|
||||
under the workspace root that the editor has never opened, an open buffer
|
||||
always shadows its disk copy, and watched-file events together with a
|
||||
per-query freshness check keep the index current.
|
||||
per-query freshness check keep the index current. The quick fixes add the
|
||||
missing `#include "textflag.h"`, set the TEXT argument area to the size the
|
||||
`// func` signature implies, add a missing `RET`, and remove an unused
|
||||
label.
|
||||
|
||||
## version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user