aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/rust-analyzer/src/global_state.rs8
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
8use crossbeam_channel::{unbounded, Receiver, Sender}; 8use crossbeam_channel::{unbounded, Receiver, Sender};
9use flycheck::FlycheckHandle; 9use flycheck::FlycheckHandle;
10use lsp_types::{request::Request as _, Url}; 10use lsp_types::Url;
11use parking_lot::RwLock; 11use parking_lot::RwLock;
12use ra_db::{CrateId, VfsPath}; 12use ra_db::{CrateId, VfsPath};
13use ra_ide::{Analysis, AnalysisChange, AnalysisHost, FileId}; 13use 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) {