diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/gen_lsp_server/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_lsp_server/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/crates/gen_lsp_server/Cargo.toml b/crates/gen_lsp_server/Cargo.toml index d14bcf694..bf57df81f 100644 --- a/crates/gen_lsp_server/Cargo.toml +++ b/crates/gen_lsp_server/Cargo.toml | |||
@@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0" | |||
8 | description = "Generic LSP server scaffold." | 8 | description = "Generic LSP server scaffold." |
9 | 9 | ||
10 | [dependencies] | 10 | [dependencies] |
11 | lsp-types = "0.57.0" | 11 | lsp-types = "0.58.0" |
12 | log = "0.4.3" | 12 | log = "0.4.3" |
13 | serde_json = "1.0.34" | 13 | serde_json = "1.0.34" |
14 | serde = { version = "1.0.83", features = ["derive"] } | 14 | serde = { version = "1.0.83", features = ["derive"] } |
diff --git a/crates/ra_lsp_server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml index 4491b8590..2c4b3789e 100644 --- a/crates/ra_lsp_server/Cargo.toml +++ b/crates/ra_lsp_server/Cargo.toml | |||
@@ -13,7 +13,7 @@ crossbeam-channel = "0.3.5" | |||
13 | flexi_logger = "0.13.0" | 13 | flexi_logger = "0.13.0" |
14 | log = "0.4.3" | 14 | log = "0.4.3" |
15 | url_serde = "0.2.0" | 15 | url_serde = "0.2.0" |
16 | lsp-types = { version = "0.57.1", features = ["proposed"] } | 16 | lsp-types = { version = "0.58.0", features = ["proposed"] } |
17 | rustc-hash = "1.0" | 17 | rustc-hash = "1.0" |
18 | parking_lot = "0.8.0" | 18 | parking_lot = "0.8.0" |
19 | 19 | ||
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index bbbc93b1c..aea94ad0d 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -2,7 +2,7 @@ use std::{fmt::Write as _, io::Write as _}; | |||
2 | 2 | ||
3 | use gen_lsp_server::ErrorCode; | 3 | use gen_lsp_server::ErrorCode; |
4 | use lsp_types::{ | 4 | use lsp_types::{ |
5 | CodeAction, CodeActionResponse, CodeLens, Command, Diagnostic, DiagnosticSeverity, | 5 | CodeAction, CodeActionOrCommand, CodeActionResponse, CodeLens, Command, Diagnostic, DiagnosticSeverity, |
6 | DocumentFormattingParams, DocumentHighlight, DocumentSymbol, FoldingRange, FoldingRangeKind, | 6 | DocumentFormattingParams, DocumentHighlight, DocumentSymbol, FoldingRange, FoldingRangeKind, |
7 | FoldingRangeParams, Hover, HoverContents, Location, MarkupContent, MarkupKind, Position, | 7 | FoldingRangeParams, Hover, HoverContents, Location, MarkupContent, MarkupKind, Position, |
8 | PrepareRenameResponse, Range, RenameParams, SymbolInformation, TextDocumentIdentifier, | 8 | PrepareRenameResponse, Range, RenameParams, SymbolInformation, TextDocumentIdentifier, |
@@ -665,7 +665,7 @@ pub fn handle_code_action( | |||
665 | 665 | ||
666 | let assists = world.analysis().assists(FileRange { file_id, range })?.into_iter(); | 666 | let assists = world.analysis().assists(FileRange { file_id, range })?.into_iter(); |
667 | let diagnostics = world.analysis().diagnostics(file_id)?; | 667 | let diagnostics = world.analysis().diagnostics(file_id)?; |
668 | let mut res: Vec<CodeAction> = Vec::new(); | 668 | let mut res: CodeActionResponse = Default::default(); |
669 | 669 | ||
670 | let fixes_from_diagnostics = diagnostics | 670 | let fixes_from_diagnostics = diagnostics |
671 | .into_iter() | 671 | .into_iter() |
@@ -689,7 +689,7 @@ pub fn handle_code_action( | |||
689 | edit: None, | 689 | edit: None, |
690 | command: Some(command), | 690 | command: Some(command), |
691 | }; | 691 | }; |
692 | res.push(action); | 692 | res.push(CodeActionOrCommand::CodeAction(action)); |
693 | } | 693 | } |
694 | 694 | ||
695 | for assist in assists { | 695 | for assist in assists { |
@@ -711,10 +711,10 @@ pub fn handle_code_action( | |||
711 | edit: None, | 711 | edit: None, |
712 | command: Some(command), | 712 | command: Some(command), |
713 | }; | 713 | }; |
714 | res.push(action); | 714 | res.push(CodeActionOrCommand::CodeAction(action)); |
715 | } | 715 | } |
716 | 716 | ||
717 | Ok(Some(CodeActionResponse::Actions(res))) | 717 | Ok(Some(res)) |
718 | } | 718 | } |
719 | 719 | ||
720 | pub fn handle_code_lens( | 720 | pub fn handle_code_lens( |