Skip to content

Commit 28c67da

Browse files
Merge conflicts.
1 parent 5013788 commit 28c67da

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

server/src/config.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use tower_lsp::{
88

99
#[derive(Default, Debug)]
1010
pub struct SliceConfig {
11-
built_in_slice_path: String,
1211
references: Option<Vec<String>>,
12+
built_in_slice_path: String,
1313
root_uri: Option<Url>,
1414
cached_slice_options: SliceOptions,
1515
}
@@ -20,8 +20,9 @@ impl SliceConfig {
2020
self.refresh_reference_paths();
2121
}
2222

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();
2526
}
2627

2728
pub fn update_from_params(&mut self, params: &DidChangeConfigurationParams) {

server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl LanguageServer for Backend {
6363
options.get("builtInSlicePath").and_then(|v| v.as_str())
6464
{
6565
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());
6767
}
6868
}
6969

0 commit comments

Comments
 (0)