10130: fix error message for when DidChangeTextDocument path doesn't exist r=matklad a=alidn

Fixes #10129

Co-authored-by: Ali <59405723+alidn@users.noreply.github.com>
This commit is contained in:
bors[bot] 2021-09-03 17:49:23 +00:00 committed by GitHub
commit 7234f943aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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