aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-06-26 16:56:08 +0100
committerGitHub <[email protected]>2020-06-26 16:56:08 +0100
commitdf27b99f2769146f588b5b5a29072fe51be7b57b (patch)
tree8a34357b6d1a3c85edb5ac938fa6baad5a3f5db5
parent90fdb8bf98c2491bcbaf72e0b1b3c27bdd9415d5 (diff)
parent91453e796b88c51e9339299e1210e785d38de84a (diff)
Merge #5080
5080: Set corret request method r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
-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) {