Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/oxc_language_server/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl LanguageServer for Backend {
continue;
};

let (diagnostics, watcher, formatter_activated) =
let (diagnostics, watchers, formatter_activated) =
worker.did_change_configuration(&option.options).await;

if formatter_activated && self.capabilities.get().is_some_and(|c| c.dynamic_formatting)
Expand All @@ -344,7 +344,7 @@ impl LanguageServer for Backend {
}
}

if let Some(watcher) = watcher
if let Some(watchers) = watchers
&& self.capabilities.get().is_some_and(|capabilities| capabilities.dynamic_watchers)
{
// remove the old watcher
Expand All @@ -357,7 +357,7 @@ impl LanguageServer for Backend {
id: format!("watcher-{}", worker.get_root_uri().as_str()),
method: "workspace/didChangeWatchedFiles".to_string(),
register_options: Some(json!(DidChangeWatchedFilesRegistrationOptions {
watchers: vec![watcher]
watchers
})),
});
}
Expand Down
Loading
Loading