diff options
-rw-r--r-- | crates/rust-analyzer/src/global_state.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/rust-analyzer/src/global_state.rs b/crates/rust-analyzer/src/global_state.rs index cadc8a129..b8aa1e5b5 100644 --- a/crates/rust-analyzer/src/global_state.rs +++ b/crates/rust-analyzer/src/global_state.rs | |||
@@ -7,7 +7,7 @@ use std::{sync::Arc, time::Instant}; | |||
7 | 7 | ||
8 | use crossbeam_channel::{unbounded, Receiver, Sender}; | 8 | use crossbeam_channel::{unbounded, Receiver, Sender}; |
9 | use flycheck::FlycheckHandle; | 9 | use flycheck::FlycheckHandle; |
10 | use lsp_types::{request::Request as _, Url}; | 10 | use lsp_types::Url; |
11 | use parking_lot::RwLock; | 11 | use parking_lot::RwLock; |
12 | use ra_db::{CrateId, VfsPath}; | 12 | use ra_db::{CrateId, VfsPath}; |
13 | use ra_ide::{Analysis, AnalysisChange, AnalysisHost, FileId}; | 13 | use ra_ide::{Analysis, AnalysisChange, AnalysisHost, FileId}; |
@@ -173,11 +173,7 @@ impl GlobalState { | |||
173 | params: R::Params, | 173 | params: R::Params, |
174 | handler: ReqHandler, | 174 | handler: ReqHandler, |
175 | ) { | 175 | ) { |
176 | let request = self.req_queue.outgoing.register( | 176 | let request = self.req_queue.outgoing.register(R::METHOD.to_string(), params, handler); |
177 | lsp_types::request::WorkDoneProgressCreate::METHOD.to_string(), | ||
178 | params, | ||
179 | handler, | ||
180 | ); | ||
181 | self.send(request.into()); | 177 | self.send(request.into()); |
182 | } | 178 | } |
183 | pub(crate) fn complete_request(&mut self, response: lsp_server::Response) { | 179 | pub(crate) fn complete_request(&mut self, response: lsp_server::Response) { |