Skip to content

Commit bd78817

Browse files
committed
Handle external error gracefully
1 parent a61de91 commit bd78817

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)