diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index c899ff6774..f81f43930d 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs @@ -641,9 +641,15 @@ fn on_notification( }; let not = match notification_cast::(not) { Ok(_params) => { + dbg!(_params); + // let request = request_new::( + // loop_state.next_request_id(), + // ConfigurationParams::default(), + // ); + // let zz = connection.sender.send(request.into()).unwrap(); return Ok(()); } - Err(not) => not, + Err(not) => dbg!(not), }; let not = match notification_cast::(not) { Ok(params) => { diff --git a/crates/rust-analyzer/src/req.rs b/crates/rust-analyzer/src/req.rs index 8557294f62..994f0ed614 100644 --- a/crates/rust-analyzer/src/req.rs +++ b/crates/rust-analyzer/src/req.rs @@ -6,7 +6,7 @@ use serde::{Deserialize, Serialize}; pub use lsp_types::{ notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens, - CodeLensParams, CompletionParams, CompletionResponse, DiagnosticTag, + CodeLensParams, CompletionParams, CompletionResponse, ConfigurationParams, DiagnosticTag, DidChangeConfigurationParams, DidChangeWatchedFilesParams, DidChangeWatchedFilesRegistrationOptions, DocumentOnTypeFormattingParams, DocumentSymbolParams, DocumentSymbolResponse, FileSystemWatcher, Hover, InitializeResult, MessageType, diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 980ed925b4..63d145db09 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -91,6 +91,12 @@ export async function activate(context: vscode.ExtensionContext) { activateHighlighting(ctx); } activateInlayHints(ctx); + + vscode.workspace.onDidChangeConfiguration( + _ => ctx?.client?.sendNotification('workspace/didChangeConfiguration', { settings: "" }), + null, + ctx?.subscriptions, + ); } export async function deactivate() {