diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 93605314a..ad62571ef 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs | |||
@@ -293,7 +293,8 @@ impl Config { | |||
293 | pub fn update_caps(&mut self, caps: &ClientCapabilities) { | 293 | pub fn update_caps(&mut self, caps: &ClientCapabilities) { |
294 | if let Some(ws_caps) = caps.workspace.as_ref() { | 294 | if let Some(ws_caps) = caps.workspace.as_ref() { |
295 | if let Some(did_change_watched_files) = ws_caps.did_change_watched_files.as_ref() { | 295 | if let Some(did_change_watched_files) = ws_caps.did_change_watched_files.as_ref() { |
296 | self.client_caps.dynamic_watched_files = did_change_watched_files.dynamic_registration.unwrap_or(false); | 296 | self.client_caps.dynamic_watched_files = |
297 | did_change_watched_files.dynamic_registration.unwrap_or(false); | ||
297 | } | 298 | } |
298 | } | 299 | } |
299 | 300 | ||