From 1fd153a24ed303f4a1a4dfa0c0012b3a05fa8ccd Mon Sep 17 00:00:00 2001 From: Ali <59405723+alidn@users.noreply.github.com> Date: Thu, 2 Sep 2021 15:19:47 -0700 Subject: [PATCH] fix error message for when DidChangeTextDocument path doesn't exist --- crates/rust-analyzer/src/main_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(()); } };