Skip to content

Commit 1fd153a

Browse files
authored
fix error message for when DidChangeTextDocument path doesn't exist
1 parent 796bfcc commit 1fd153a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/main_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ impl GlobalState {
660660
doc.version = params.text_document.version;
661661
}
662662
None => {
663-
tracing::error!("expected DidChangeTextDocument: {}", path);
663+
tracing::error!("unexpected DidChangeTextDocument: {}; send DidOpenTextDocument first", path);
664664
return Ok(());
665665
}
666666
};

0 commit comments

Comments
 (0)