Notify language servers of FS changes

This commit is contained in:
Max Brunsfeld 2023-03-09 18:04:56 -08:00
parent 9837a6e288
commit 61172c8478
4 changed files with 147 additions and 15 deletions

View file

@ -509,14 +509,14 @@ async fn test_reporting_fs_changes_to_language_servers(cx: &mut gpui::TestAppCon
assert_eq!(
&*file_changes.lock(),
&[
lsp::FileEvent {
uri: lsp::Url::from_file_path("/the-root/b.rs").unwrap(),
typ: lsp::FileChangeType::DELETED,
},
lsp::FileEvent {
uri: lsp::Url::from_file_path("/the-root/c.rs").unwrap(),
typ: lsp::FileChangeType::CREATED,
},
lsp::FileEvent {
uri: lsp::Url::from_file_path("/the-root/b.rs").unwrap(),
typ: lsp::FileChangeType::DELETED,
}
]
);
}