Skip to content

Commit

Permalink
Deal with delete/rename of external files with errs/warns
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Nov 7, 2023
1 parent 769060a commit 4f5ebfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lsp/src/main/java/workspace/LSPWorkspaceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,11 @@ public RPCMessageList afterChangeWatchedFiles(RPCRequest request, int actionCode
{
for (File file: deleted)
{
if (isExternalFile(file))
{
file = getExtractedName(file); // Messages reported against extract
}

JSONObject params = new JSONObject("uri", file.toURI().toString(), "diagnostics", new JSONArray());
results.add(RPCRequest.notification("textDocument/publishDiagnostics", params));
}
Expand Down

0 comments on commit 4f5ebfe

Please sign in to comment.