Unnamed repository; edit this file 'description' to name the repository.
Merge #10130
10130: fix error message for when DidChangeTextDocument path doesn't exist r=matklad a=alidn Fixes #10129 Co-authored-by: Ali <[email protected]>
bors[bot] 2021-09-04
parent ac25201 · parent 1fd153a · commit 7234f94
-rw-r--r--crates/rust-analyzer/src/main_loop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index ad43e7eca0..0d72f6ec97 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -660,7 +660,7 @@ impl GlobalState {
doc.version = params.text_document.version;
}
None => {
- tracing::error!("expected DidChangeTextDocument: {}", path);
+ tracing::error!("unexpected DidChangeTextDocument: {}; send DidOpenTextDocument first", path);
return Ok(());
}
};