Skip to content

Commit 69048b8

Browse files
authored
Merge pull request #39 from bcmi-labs/fix_undeclared_var_use
Force sketch rebuild check if "undeclared_var_use" error is detected
2 parents 1daeb70 + b2da3a2 commit 69048b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: handler/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ func (handler *InoHandler) FromClangd(ctx context.Context, connection *jsonrpc2.
11821182
inoDocsWithDiagnostics[inoDiag.URI] = true
11831183
cleanUpInoDiagnostics = true
11841184
for _, diag := range inoDiag.Diagnostics {
1185-
if diag.Code == "undeclared_var_use_suggest" {
1185+
if diag.Code == "undeclared_var_use_suggest" || diag.Code == "undeclared_var_use" {
11861186
handler.buildSketchSymbolsCheck = true
11871187
}
11881188
}

0 commit comments

Comments
 (0)