test: force client-side watching

The direct reason for this is to fix CI on windows, which seems to fail
for some reason after we fixed the watcher-selection logic which (I
think) changed the tests behavior to use notify rather than client.

But this patch seems to make sense in general -- file watching is
notoriously finicky, so controlling it explicitly leads to less fragile
tests.
This commit is contained in:
Aleksey Kladov 2022-01-01 19:10:34 +03:00
parent 0d1e23e968
commit a1c33c2e1a

View file

@ -101,6 +101,14 @@ impl<'a> Project<'a> {
let mut config = Config::new(
tmp_dir_path,
lsp_types::ClientCapabilities {
workspace: Some(lsp_types::WorkspaceClientCapabilities {
did_change_watched_files: Some(
lsp_types::DidChangeWatchedFilesClientCapabilities {
dynamic_registration: Some(true),
},
),
..Default::default()
}),
text_document: Some(lsp_types::TextDocumentClientCapabilities {
definition: Some(lsp_types::GotoCapability {
link_support: Some(true),