Update snapshot atomically when processing FS events

This commit is contained in:
Max Brunsfeld 2022-05-03 15:36:45 -07:00
parent 0ff39f1280
commit 8291b8108d
3 changed files with 79 additions and 70 deletions

View file

@ -5282,6 +5282,7 @@ mod tests {
language_id: Default::default()
},
);
// We clear the diagnostics, since the language has changed.
rust_buffer2.read_with(cx, |buffer, _| {
assert_eq!(