aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/caps.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-11 10:13:10 +0100
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-11 10:13:10 +0100
commitfa3716efe67f97929ad1351c9a07cc914e0bdf45 (patch)
tree380f0680aed256d28db5f535d7aa0e480aa489e0 /crates/ra_lsp_server/src/caps.rs
parent46d7b08c5f0440fed43399ffe925e30bfe95e5dd (diff)
parente81a47b8ebce9bcf680b15c6e0c1e879200f75df (diff)
Merge #1520
1520: Ignore workspace/didChangeConfiguration notifications. r=matklad a=bolinfest If the client happens to send a `workspace/didChangeConfiguration` notification, it is nicer if rust-analyzer can just ignore it rather than crash with an "unhandled notification" error. Co-authored-by: Michael Bolin <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server/src/caps.rs')
-rw-r--r--crates/ra_lsp_server/src/caps.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/crates/ra_lsp_server/src/caps.rs b/crates/ra_lsp_server/src/caps.rs
index 3851aadf2..bb9205aed 100644
--- a/crates/ra_lsp_server/src/caps.rs
+++ b/crates/ra_lsp_server/src/caps.rs
@@ -1,8 +1,8 @@
1use lsp_types::{ 1use lsp_types::{
2 CodeActionProviderCapability, CodeLensOptions, CompletionOptions, 2 CodeActionProviderCapability, CodeLensOptions, CompletionOptions,
3 DocumentOnTypeFormattingOptions, ExecuteCommandOptions, FoldingRangeProviderCapability, 3 DocumentOnTypeFormattingOptions, FoldingRangeProviderCapability, GenericCapability,
4 GenericCapability, ImplementationProviderCapability, RenameOptions, RenameProviderCapability, 4 ImplementationProviderCapability, RenameOptions, RenameProviderCapability, ServerCapabilities,
5 ServerCapabilities, SignatureHelpOptions, TextDocumentSyncCapability, TextDocumentSyncKind, 5 SignatureHelpOptions, TextDocumentSyncCapability, TextDocumentSyncKind,
6 TextDocumentSyncOptions, TypeDefinitionProviderCapability, 6 TextDocumentSyncOptions, TypeDefinitionProviderCapability,
7}; 7};
8 8
@@ -44,9 +44,7 @@ pub fn server_capabilities() -> ServerCapabilities {
44 prepare_provider: Some(true), 44 prepare_provider: Some(true),
45 })), 45 })),
46 color_provider: None, 46 color_provider: None,
47 execute_command_provider: Some(ExecuteCommandOptions { 47 execute_command_provider: None,
48 commands: vec!["apply_code_action".to_string()],
49 }),
50 workspace: None, 48 workspace: None,
51 } 49 }
52} 50}