diff options
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 8 | ||||
-rw-r--r-- | crates/rust-analyzer/src/req.rs | 2 | ||||
-rw-r--r-- | editors/code/src/main.ts | 6 |
3 files changed, 14 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, |
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 980ed925b..63d145db0 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts | |||
@@ -91,6 +91,12 @@ export async function activate(context: vscode.ExtensionContext) { | |||
91 | activateHighlighting(ctx); | 91 | activateHighlighting(ctx); |
92 | } | 92 | } |
93 | activateInlayHints(ctx); | 93 | activateInlayHints(ctx); |
94 | |||
95 | vscode.workspace.onDidChangeConfiguration( | ||
96 | _ => ctx?.client?.sendNotification('workspace/didChangeConfiguration', { settings: "" }), | ||
97 | null, | ||
98 | ctx?.subscriptions, | ||
99 | ); | ||
94 | } | 100 | } |
95 | 101 | ||
96 | export async function deactivate() { | 102 | export async function deactivate() { |