We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a3dd0 commit 4f4582aCopy full SHA for 4f4582a
crates/rust-analyzer/src/main_loop.rs
@@ -420,7 +420,7 @@ impl GlobalState {
420
})?
421
.on::<lsp_types::notification::DidChangeTextDocument>(|this, params| {
422
if let Ok(path) = from_proto::vfs_path(¶ms.text_document.uri) {
423
- assert!(this.mem_docs.contains_key(&path));
+ *this.mem_docs.get_mut(&path).unwrap() = params.text_document.version;
424
let vfs = &mut this.vfs.write().0;
425
let file_id = vfs.file_id(&path).unwrap();
426
let mut text = String::from_utf8(vfs.file_contents(file_id).to_vec()).unwrap();
0 commit comments