feat: autofix unknown variable: a and file not found (searched at a.typ) by code action (#1743)

* feat: check context

* feat: implement it

* fix: warnings

* test: update snapshot
This commit is contained in:
Myriad-Dreamin 2025-05-09 23:44:12 +08:00 committed by GitHub
parent d6d3766b6f
commit 38974a3b5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 834 additions and 84 deletions

View file

@ -297,7 +297,7 @@ mod polymorphic {
DocumentLink(Option<Vec<DocumentLink>>),
DocumentHighlight(Option<Vec<DocumentHighlight>>),
ColorPresentation(Option<Vec<ColorPresentation>>),
CodeAction(Option<Vec<CodeActionOrCommand>>),
CodeAction(Option<Vec<CodeAction>>),
CodeLens(Option<Vec<CodeLens>>),
Completion(Option<CompletionList>),
SignatureHelp(Option<SignatureHelp>),