File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 99
1010use std:: { ffi:: OsString , path:: PathBuf } ;
1111
12- use crate :: diagnostics:: DiagnosticsConfig ;
1312use flycheck:: FlycheckConfig ;
1413use lsp_types:: ClientCapabilities ;
1514use ra_db:: AbsPathBuf ;
1615use ra_ide:: { AssistConfig , CompletionConfig , HoverConfig , InlayHintsConfig } ;
1716use ra_project_model:: { CargoConfig , ProjectJson , ProjectJsonData , ProjectManifest } ;
1817use serde:: Deserialize ;
1918
19+ use crate :: diagnostics:: DiagnosticsConfig ;
20+
2021#[ derive( Debug , Clone ) ]
2122pub struct Config {
2223 pub client_caps : ClientCapsConfig ,
@@ -182,8 +183,10 @@ impl Config {
182183 log:: info!( "Config::update({:#})" , value) ;
183184
184185 let client_caps = self . client_caps . clone ( ) ;
186+ let linked_projects = self . linked_projects . clone ( ) ;
185187 * self = Config :: new ( self . root_path . clone ( ) ) ;
186188 self . client_caps = client_caps;
189+ self . linked_projects = linked_projects;
187190
188191 set ( value, "/withSysroot" , & mut self . with_sysroot ) ;
189192 set ( value, "/diagnostics/enable" , & mut self . publish_diagnostics ) ;
You can’t perform that action at this time.
0 commit comments