File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ use tower_lsp::{
8
8
9
9
#[ derive( Default , Debug ) ]
10
10
pub struct SliceConfig {
11
- built_in_slice_path : String ,
12
11
references : Option < Vec < String > > ,
12
+ built_in_slice_path : String ,
13
13
root_uri : Option < Url > ,
14
14
cached_slice_options : SliceOptions ,
15
15
}
@@ -20,8 +20,9 @@ impl SliceConfig {
20
20
self . refresh_reference_paths ( ) ;
21
21
}
22
22
23
- pub fn set_built_in_reference ( & mut self , path : impl Into < String > ) {
24
- self . built_in_slice_path = path. into ( ) ;
23
+ pub fn set_built_in_reference ( & mut self , path : String ) {
24
+ self . built_in_slice_path = path;
25
+ self . refresh_reference_paths ( ) ;
25
26
}
26
27
27
28
pub fn update_from_params ( & mut self , params : & DidChangeConfigurationParams ) {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ impl LanguageServer for Backend {
63
63
options. get ( "builtInSlicePath" ) . and_then ( |v| v. as_str ( ) )
64
64
{
65
65
let mut slice_config = self . slice_config . lock ( ) . await ;
66
- slice_config. set_built_in_reference ( built_in_slice_path) ;
66
+ slice_config. set_built_in_reference ( built_in_slice_path. to_owned ( ) ) ;
67
67
}
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments