mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Set corret request method
This commit is contained in:
parent
90fdb8bf98
commit
91453e796b
1 changed files with 2 additions and 6 deletions
|
@ -7,7 +7,7 @@ use std::{sync::Arc, time::Instant};
|
|||
|
||||
use crossbeam_channel::{unbounded, Receiver, Sender};
|
||||
use flycheck::FlycheckHandle;
|
||||
use lsp_types::{request::Request as _, Url};
|
||||
use lsp_types::Url;
|
||||
use parking_lot::RwLock;
|
||||
use ra_db::{CrateId, VfsPath};
|
||||
use ra_ide::{Analysis, AnalysisChange, AnalysisHost, FileId};
|
||||
|
@ -173,11 +173,7 @@ impl GlobalState {
|
|||
params: R::Params,
|
||||
handler: ReqHandler,
|
||||
) {
|
||||
let request = self.req_queue.outgoing.register(
|
||||
lsp_types::request::WorkDoneProgressCreate::METHOD.to_string(),
|
||||
params,
|
||||
handler,
|
||||
);
|
||||
let request = self.req_queue.outgoing.register(R::METHOD.to_string(), params, handler);
|
||||
self.send(request.into());
|
||||
}
|
||||
pub(crate) fn complete_request(&mut self, response: lsp_server::Response) {
|
||||
|
|
Loading…
Reference in a new issue