File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ impl LanguageServer for Backend {
114114 match params. initialization_options . map ( serde_json:: from_value :: < Config > ) {
115115 Some ( Ok ( config) ) => {
116116 self . on_change_config ( config) . await ;
117- break ' root;
118117 }
119118 Some ( Err ( err) ) => {
120119 error ! ( "could not parse provided config:\n {err}" ) ;
@@ -125,8 +124,9 @@ impl LanguageServer for Backend {
125124 let config_file = ' find_root: {
126125 for choice in [ ".odoo_lsp" , ".odoo_lsp.json" ] {
127126 let path = root. join ( choice) ;
128- if let Ok ( file) = tokio:: fs:: read ( & path) . await {
129- break ' find_root Some ( ( path, file) ) ;
127+ match tokio:: fs:: read ( & path) . await {
128+ Ok ( file) => break ' find_root Some ( ( path, file) ) ,
129+ Err ( err) => error ! ( "(initialize) could not read {path:?}: {err}" ) ,
130130 }
131131 }
132132 None
You can’t perform that action at this time.
0 commit comments