diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-06-26 16:56:08 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-26 16:56:08 +0100 |
commit | df27b99f2769146f588b5b5a29072fe51be7b57b (patch) | |
tree | 8a34357b6d1a3c85edb5ac938fa6baad5a3f5db5 | |
parent | 90fdb8bf98c2491bcbaf72e0b1b3c27bdd9415d5 (diff) | |
parent | 91453e796b88c51e9339299e1210e785d38de84a (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.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) { |