We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70a6cf0 + 297ed70 commit ea71a49Copy full SHA for ea71a49
crates/rust-analyzer/src/handlers/notification.rs
@@ -113,6 +113,10 @@ pub(crate) fn handle_did_close_text_document(
113
tracing::error!("orphan DidCloseTextDocument: {}", path);
114
}
115
116
+ if let Some(file_id) = state.vfs.read().0.file_id(&path) {
117
+ state.diagnostics.clear_native_for(file_id);
118
+ }
119
+
120
state.semantic_tokens_cache.lock().remove(¶ms.text_document.uri);
121
122
if let Some(path) = path.as_path() {
0 commit comments