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:
parent
a172c3c5c6
commit
7a35ea7b25
2 changed files with 16 additions and 12 deletions
|
@ -1241,10 +1241,7 @@ impl Project {
|
|||
lsp::DocumentChangeOperation::Edit(edit) => todo!(),
|
||||
}
|
||||
}
|
||||
// match edit {
|
||||
// Ok(edit) => edit.,
|
||||
// Err(_) => todo!(),
|
||||
// }
|
||||
|
||||
Ok(Default::default())
|
||||
})
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue