]> git.lizzy.rs Git - rust.git/commitdiff
fix error message for when DidChangeTextDocument path doesn't exist
authorAli <59405723+alidn@users.noreply.github.com>
Thu, 2 Sep 2021 22:19:47 +0000 (15:19 -0700)
committerGitHub <noreply@github.com>
Thu, 2 Sep 2021 22:19:47 +0000 (15:19 -0700)
crates/rust-analyzer/src/main_loop.rs

index ad43e7eca0e5b38cc0c0fbda99fbeeb6d937e626..0d72f6ec97f623f03038d4e8c5af7ed954af64fe 100644 (file)
@@ -660,7 +660,7 @@ fn on_notification(&mut self, not: Notification) -> Result<()> {
                             doc.version = params.text_document.version;
                         }
                         None => {
-                            tracing::error!("expected DidChangeTextDocument: {}", path);
+                            tracing::error!("unexpected DidChangeTextDocument: {}; send DidOpenTextDocument first", path);
                             return Ok(());
                         }
                     };