Skip to content

Commit

Permalink
fix: clear diagnostics after close for single file
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed Jul 11, 2024
1 parent cfb1c5a commit c4c1d29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class FallbackMetalsLspService(
val path = params.getTextDocument.getUri.toAbsolutePath
files.getAndUpdate(_ - path)
super.didClose(params)
scalaCli.stop(path)
scalaCli.stop(path).map(_ => diagnostics.didDelete(path))
}

override def maybeImportFileAndLoad(
Expand Down

0 comments on commit c4c1d29

Please sign in to comment.