mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
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:
parent
0d1e23e968
commit
a1c33c2e1a
1 changed files with 8 additions and 0 deletions
|
@ -101,6 +101,14 @@ impl<'a> Project<'a> {
|
||||||
let mut config = Config::new(
|
let mut config = Config::new(
|
||||||
tmp_dir_path,
|
tmp_dir_path,
|
||||||
lsp_types::ClientCapabilities {
|
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 {
|
text_document: Some(lsp_types::TextDocumentClientCapabilities {
|
||||||
definition: Some(lsp_types::GotoCapability {
|
definition: Some(lsp_types::GotoCapability {
|
||||||
link_support: Some(true),
|
link_support: Some(true),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue