mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Ignore workspace/didChangeConfiguration notifications.
This commit is contained in:
parent
61135d4d4d
commit
a814883cd4
@ -431,6 +431,12 @@ fn on_notification(
|
|||||||
}
|
}
|
||||||
Err(not) => not,
|
Err(not) => not,
|
||||||
};
|
};
|
||||||
|
let not = match not.cast::<req::DidChangeConfiguration>() {
|
||||||
|
Ok(_params) => {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
Err(not) => not,
|
||||||
|
};
|
||||||
log::error!("unhandled notification: {:?}", not);
|
log::error!("unhandled notification: {:?}", not);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,11 @@ use url_serde;
|
|||||||
|
|
||||||
pub use lsp_types::{
|
pub use lsp_types::{
|
||||||
notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens,
|
notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens,
|
||||||
CodeLensParams, CompletionParams, CompletionResponse, DocumentOnTypeFormattingParams,
|
CodeLensParams, CompletionParams, CompletionResponse, DidChangeConfigurationParams,
|
||||||
DocumentSymbolParams, DocumentSymbolResponse, ExecuteCommandParams, Hover, InitializeResult,
|
DocumentOnTypeFormattingParams, DocumentSymbolParams, DocumentSymbolResponse,
|
||||||
MessageType, PublishDiagnosticsParams, ReferenceParams, ShowMessageParams, SignatureHelp,
|
ExecuteCommandParams, Hover, InitializeResult, MessageType, PublishDiagnosticsParams,
|
||||||
TextDocumentEdit, TextDocumentPositionParams, TextEdit, WorkspaceEdit, WorkspaceSymbolParams,
|
ReferenceParams, ShowMessageParams, SignatureHelp, TextDocumentEdit,
|
||||||
|
TextDocumentPositionParams, TextEdit, WorkspaceEdit, WorkspaceSymbolParams,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub enum AnalyzerStatus {}
|
pub enum AnalyzerStatus {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user