diff options
author | Kirill Bulatov <[email protected]> | 2020-03-18 23:39:12 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-03-30 11:39:14 +0100 |
commit | 8c4aab0c803e3962ffc2c42538df1d29dd3a8ef0 (patch) | |
tree | 93c0c25806938ed9be69164da7408aec1870a8d8 /crates | |
parent | 9e12b9e6fdc03ea6bc35a88cfb5d5d6751672ec8 (diff) |
Client side draft
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 8 | ||||
-rw-r--r-- | crates/rust-analyzer/src/req.rs | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index c899ff677..f81f43930 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -641,9 +641,15 @@ fn on_notification( | |||
641 | }; | 641 | }; |
642 | let not = match notification_cast::<req::DidChangeConfiguration>(not) { | 642 | let not = match notification_cast::<req::DidChangeConfiguration>(not) { |
643 | Ok(_params) => { | 643 | Ok(_params) => { |
644 | dbg!(_params); | ||
645 | // let request = request_new::<req::WorkspaceConfiguration>( | ||
646 | // loop_state.next_request_id(), | ||
647 | // ConfigurationParams::default(), | ||
648 | // ); | ||
649 | // let zz = connection.sender.send(request.into()).unwrap(); | ||
644 | return Ok(()); | 650 | return Ok(()); |
645 | } | 651 | } |
646 | Err(not) => not, | 652 | Err(not) => dbg!(not), |
647 | }; | 653 | }; |
648 | let not = match notification_cast::<req::DidChangeWatchedFiles>(not) { | 654 | let not = match notification_cast::<req::DidChangeWatchedFiles>(not) { |
649 | Ok(params) => { | 655 | Ok(params) => { |
diff --git a/crates/rust-analyzer/src/req.rs b/crates/rust-analyzer/src/req.rs index 8557294f6..994f0ed61 100644 --- a/crates/rust-analyzer/src/req.rs +++ b/crates/rust-analyzer/src/req.rs | |||
@@ -6,7 +6,7 @@ use serde::{Deserialize, Serialize}; | |||
6 | 6 | ||
7 | pub use lsp_types::{ | 7 | pub use lsp_types::{ |
8 | notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens, | 8 | notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens, |
9 | CodeLensParams, CompletionParams, CompletionResponse, DiagnosticTag, | 9 | CodeLensParams, CompletionParams, CompletionResponse, ConfigurationParams, DiagnosticTag, |
10 | DidChangeConfigurationParams, DidChangeWatchedFilesParams, | 10 | DidChangeConfigurationParams, DidChangeWatchedFilesParams, |
11 | DidChangeWatchedFilesRegistrationOptions, DocumentOnTypeFormattingParams, DocumentSymbolParams, | 11 | DidChangeWatchedFilesRegistrationOptions, DocumentOnTypeFormattingParams, DocumentSymbolParams, |
12 | DocumentSymbolResponse, FileSystemWatcher, Hover, InitializeResult, MessageType, | 12 | DocumentSymbolResponse, FileSystemWatcher, Hover, InitializeResult, MessageType, |