Skip to content

Commit

Permalink
Add new ignores as effective deletes, to remove error/warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Sep 15, 2024
1 parent 24d650a commit 198c7ca
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lsp/src/main/java/workspace/plugins/LSPPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,19 @@ public RPCMessageList afterChangeWatchedFiles(RPCRequest request, int actionCode
{
if (actionCode == RELOAD_AND_CHECK)
{
loadAllProjectFiles();
// We may have effectively deleted files by editing VDMIGNORE
List<File> oldIgnores = vdmignore;

loadAllProjectFiles(); // Re-reads ignore file

// Check for newly ignored files and add as deletions (processed below)
for (File file: vdmignore)
{
if (!oldIgnores.contains(file))
{
deleted.add(file);
}
}
}

RPCMessageList results = null;
Expand Down

0 comments on commit 198c7ca

Please sign in to comment.