File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -574,9 +574,10 @@ impl LanguageServerState {
574
574
for folder in workspace_folders {
575
575
let path = file_path_from_url ( & folder. uri ) . unwrap ( ) ;
576
576
let mut watcher = & mut self . fs_event_watcher . handle ;
577
- watcher
578
- . watch ( std:: path:: Path :: new ( & path) , RecursiveMode :: Recursive )
579
- . unwrap ( ) ;
577
+ match watcher. watch ( std:: path:: Path :: new ( & path) , RecursiveMode :: Recursive ) {
578
+ Ok ( _) => self . log_message ( format ! ( "Start watch {:?}" , path) ) ,
579
+ Err ( e) => self . log_message ( format ! ( "Failed watch {:?}: {:?}" , path, e) ) ,
580
+ }
580
581
self . log_message ( format ! ( "Start watch {:?}" , path) ) ;
581
582
let tool = Arc :: clone ( & self . tool ) ;
582
583
let ( workspaces, failed) = lookup_compile_workspaces ( & * tool. read ( ) , & path, true ) ;
You can’t perform that action at this time.
0 commit comments