Tolerate language servers reporting non-monotonic buffer versions
This isn't perfect but we'll retain up to 10 old versions just in case there are race conditions in the language server. We haven't seen this in the wild but we're concerned about diagnostic reporting racing with code action resolution. Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
a172c3c5c6
commit
7a35ea7b25
@@ -1241,10 +1241,7 @@ impl Project {
|
||||
lsp::DocumentChangeOperation::Edit(edit) => todo!(),
|
||||
}
|
||||
}
|
||||
// match edit {
|
||||
// Ok(edit) => edit.,
|
||||
// Err(_) => todo!(),
|
||||
// }
|
||||
|
||||
Ok(Default::default())
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user