File tree Expand file tree Collapse file tree 2 files changed +378
-47
lines changed
crates/oxc_language_server/src Expand file tree Collapse file tree 2 files changed +378
-47
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ impl LanguageServer for Backend {
327327 continue ;
328328 } ;
329329
330- let ( diagnostics, watcher , formatter_activated) =
330+ let ( diagnostics, watchers , formatter_activated) =
331331 worker. did_change_configuration ( & option. options ) . await ;
332332
333333 if formatter_activated && self . capabilities . get ( ) . is_some_and ( |c| c. dynamic_formatting )
@@ -344,7 +344,7 @@ impl LanguageServer for Backend {
344344 }
345345 }
346346
347- if let Some ( watcher ) = watcher
347+ if let Some ( watchers ) = watchers
348348 && self . capabilities . get ( ) . is_some_and ( |capabilities| capabilities. dynamic_watchers )
349349 {
350350 // remove the old watcher
@@ -357,7 +357,7 @@ impl LanguageServer for Backend {
357357 id : format ! ( "watcher-{}" , worker. get_root_uri( ) . as_str( ) ) ,
358358 method : "workspace/didChangeWatchedFiles" . to_string ( ) ,
359359 register_options : Some ( json ! ( DidChangeWatchedFilesRegistrationOptions {
360- watchers: vec! [ watcher ]
360+ watchers
361361 } ) ) ,
362362 } ) ;
363363 }
You can’t perform that action at this time.
0 commit comments