Skip to content

Commit f8fae02

Browse files
authored
Merge pull request #45 from bcmi-labs/stablity-fix
Handle non-ino errors gracefully
2 parents a61de91 + bd78817 commit f8fae02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: handler/handler.go

+5
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,11 @@ func (handler *InoHandler) FromClangd(ctx context.Context, connection *jsonrpc2.
13341334
// Push back to IDE the converted diagnostics
13351335
inoDocsWithDiagnostics := map[lsp.DocumentURI]bool{}
13361336
for _, inoDiag := range inoDiagnostics {
1337+
if inoDiag.URI == lsp.NewDocumentURI(sourcemapper.NotIno.File) {
1338+
cleanUpInoDiagnostics = true
1339+
continue
1340+
}
1341+
13371342
if enableLogging {
13381343
log.Printf("<-- publishDiagnostics(%s):", inoDiag.URI)
13391344
for _, diag := range inoDiag.Diagnostics {

0 commit comments

Comments
 (0)