diff options
author | Aleksey Kladov <[email protected]> | 2021-01-05 13:57:05 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-01-05 14:46:57 +0000 |
commit | 624eb1ee54e759c03d07c06e5e68dec7f36cb519 (patch) | |
tree | e7ee04b6a3cb030e4db0c3d118d723b8cf3704e0 /crates/rust-analyzer/src/reload.rs | |
parent | c8d3d5694be065ffb1d52bc33e098ff610693097 (diff) |
More maintainable caps config
The idea here is that we preserve client's config as is, without
changes. This gets rid of state!
Diffstat (limited to 'crates/rust-analyzer/src/reload.rs')
-rw-r--r-- | crates/rust-analyzer/src/reload.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs index 79e39e3a5..ce5cedeb3 100644 --- a/crates/rust-analyzer/src/reload.rs +++ b/crates/rust-analyzer/src/reload.rs | |||
@@ -79,7 +79,7 @@ impl GlobalState { | |||
79 | } | 79 | } |
80 | pub(crate) fn transition(&mut self, new_status: Status) { | 80 | pub(crate) fn transition(&mut self, new_status: Status) { |
81 | self.status = new_status; | 81 | self.status = new_status; |
82 | if self.config.client_caps.status_notification { | 82 | if self.config.status_notification() { |
83 | let lsp_status = match new_status { | 83 | let lsp_status = match new_status { |
84 | Status::Loading => lsp_ext::Status::Loading, | 84 | Status::Loading => lsp_ext::Status::Loading, |
85 | Status::Ready => lsp_ext::Status::Ready, | 85 | Status::Ready => lsp_ext::Status::Ready, |