From a814883cd40be772d52bb8e7424326021fdb0e0e Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Wed, 10 Jul 2019 20:44:23 -0700 Subject: Ignore workspace/didChangeConfiguration notifications. --- crates/ra_lsp_server/src/main_loop.rs | 6 ++++++ crates/ra_lsp_server/src/req.rs | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index f7becd8fb..668d2fd72 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -431,6 +431,12 @@ fn on_notification( } Err(not) => not, }; + let not = match not.cast::() { + Ok(_params) => { + return Ok(()); + } + Err(not) => not, + }; log::error!("unhandled notification: {:?}", not); Ok(()) } diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index 27f2deb34..11af41a1d 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs @@ -5,10 +5,11 @@ use url_serde; pub use lsp_types::{ notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens, - CodeLensParams, CompletionParams, CompletionResponse, DocumentOnTypeFormattingParams, - DocumentSymbolParams, DocumentSymbolResponse, ExecuteCommandParams, Hover, InitializeResult, - MessageType, PublishDiagnosticsParams, ReferenceParams, ShowMessageParams, SignatureHelp, - TextDocumentEdit, TextDocumentPositionParams, TextEdit, WorkspaceEdit, WorkspaceSymbolParams, + CodeLensParams, CompletionParams, CompletionResponse, DidChangeConfigurationParams, + DocumentOnTypeFormattingParams, DocumentSymbolParams, DocumentSymbolResponse, + ExecuteCommandParams, Hover, InitializeResult, MessageType, PublishDiagnosticsParams, + ReferenceParams, ShowMessageParams, SignatureHelp, TextDocumentEdit, + TextDocumentPositionParams, TextEdit, WorkspaceEdit, WorkspaceSymbolParams, }; pub enum AnalyzerStatus {} -- cgit v1.2.3