Skip to content

Commit 7ba686e

Browse files
rszymainclyc
andauthored
nixd/Controller: clear diagnostics when removing document (#716)
Fixes the issue described in comment nix-community/vscode-nix-ide#497 (comment). --------- Co-authored-by: Yingchi Long <longyingchi24s@ict.ac.cn>
1 parent d2ee194 commit 7ba686e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nixd/lib/Controller/Support.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ void Controller::removeDocument(lspserver::PathRef File) {
1717
std::lock_guard _(TUsLock);
1818
TUs.erase(File);
1919
}
20+
publishDiagnostics(File, std::nullopt, "", {});
2021
}
2122

2223
void Controller::actOnDocumentAdd(PathRef File,

0 commit comments

Comments
 (0)