fix error message for when DidChangeTextDocument path doesn't exist

This commit is contained in:
Ali 2021-09-02 15:19:47 -07:00 committed by GitHub
parent 796bfccac4
commit 1fd153a24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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(());
}
};