diff options
author | Emil Lauridsen <[email protected]> | 2019-12-25 18:10:45 +0000 |
---|---|---|
committer | Emil Lauridsen <[email protected]> | 2019-12-25 18:14:30 +0000 |
commit | f7d04d05756e7074de2b73b35718b5b4ae670d1b (patch) | |
tree | 7a8c1799c1888fee2ff08801c46b2a2cd0e2488e /crates/ra_lsp_server/src | |
parent | b9c10ed97f22d665b75895a387c633dfa412ed2b (diff) |
Re-format ra_lsp_server changes
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r-- | crates/ra_lsp_server/src/caps.rs | 4 | ||||
-rw-r--r-- | crates/ra_lsp_server/src/req.rs | 8 | ||||
-rw-r--r-- | crates/ra_lsp_server/src/world.rs | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_lsp_server/src/caps.rs b/crates/ra_lsp_server/src/caps.rs index 0f84e7a34..0dee1f6fe 100644 --- a/crates/ra_lsp_server/src/caps.rs +++ b/crates/ra_lsp_server/src/caps.rs | |||
@@ -3,10 +3,10 @@ | |||
3 | use lsp_types::{ | 3 | use lsp_types::{ |
4 | CodeActionProviderCapability, CodeLensOptions, CompletionOptions, | 4 | CodeActionProviderCapability, CodeLensOptions, CompletionOptions, |
5 | DocumentOnTypeFormattingOptions, FoldingRangeProviderCapability, | 5 | DocumentOnTypeFormattingOptions, FoldingRangeProviderCapability, |
6 | ImplementationProviderCapability, RenameOptions, RenameProviderCapability, | 6 | ImplementationProviderCapability, RenameOptions, RenameProviderCapability, SaveOptions, |
7 | SelectionRangeProviderCapability, ServerCapabilities, SignatureHelpOptions, | 7 | SelectionRangeProviderCapability, ServerCapabilities, SignatureHelpOptions, |
8 | TextDocumentSyncCapability, TextDocumentSyncKind, TextDocumentSyncOptions, | 8 | TextDocumentSyncCapability, TextDocumentSyncKind, TextDocumentSyncOptions, |
9 | TypeDefinitionProviderCapability, WorkDoneProgressOptions, SaveOptions | 9 | TypeDefinitionProviderCapability, WorkDoneProgressOptions, |
10 | }; | 10 | }; |
11 | 11 | ||
12 | pub fn server_capabilities() -> ServerCapabilities { | 12 | pub fn server_capabilities() -> ServerCapabilities { |
diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index b34e6f9b8..40edaf677 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs | |||
@@ -9,10 +9,10 @@ pub use lsp_types::{ | |||
9 | CodeLensParams, CompletionParams, CompletionResponse, DidChangeConfigurationParams, | 9 | CodeLensParams, CompletionParams, CompletionResponse, DidChangeConfigurationParams, |
10 | DidChangeWatchedFilesParams, DidChangeWatchedFilesRegistrationOptions, | 10 | DidChangeWatchedFilesParams, DidChangeWatchedFilesRegistrationOptions, |
11 | DocumentOnTypeFormattingParams, DocumentSymbolParams, DocumentSymbolResponse, | 11 | DocumentOnTypeFormattingParams, DocumentSymbolParams, DocumentSymbolResponse, |
12 | FileSystemWatcher, Hover, InitializeResult, MessageType, PublishDiagnosticsParams, | 12 | FileSystemWatcher, Hover, InitializeResult, MessageType, ProgressParams, ProgressParamsValue, |
13 | ReferenceParams, Registration, RegistrationParams, SelectionRange, SelectionRangeParams, | 13 | ProgressToken, PublishDiagnosticsParams, ReferenceParams, Registration, RegistrationParams, |
14 | ShowMessageParams, SignatureHelp, TextDocumentEdit, TextDocumentPositionParams, TextEdit, | 14 | SelectionRange, SelectionRangeParams, ShowMessageParams, SignatureHelp, TextDocumentEdit, |
15 | WorkspaceEdit, WorkspaceSymbolParams, | 15 | TextDocumentPositionParams, TextEdit, WorkspaceEdit, WorkspaceSymbolParams, |
16 | }; | 16 | }; |
17 | 17 | ||
18 | pub enum AnalyzerStatus {} | 18 | pub enum AnalyzerStatus {} |
diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs index 235eb199d..47c3823fb 100644 --- a/crates/ra_lsp_server/src/world.rs +++ b/crates/ra_lsp_server/src/world.rs | |||
@@ -23,8 +23,8 @@ use relative_path::RelativePathBuf; | |||
23 | use std::path::{Component, Prefix}; | 23 | use std::path::{Component, Prefix}; |
24 | 24 | ||
25 | use crate::{ | 25 | use crate::{ |
26 | main_loop::pending_requests::{CompletedRequest, LatestRequests}, | ||
27 | cargo_check::{CheckWatcher, CheckWatcherSharedState}, | 26 | cargo_check::{CheckWatcher, CheckWatcherSharedState}, |
27 | main_loop::pending_requests::{CompletedRequest, LatestRequests}, | ||
28 | LspError, Result, | 28 | LspError, Result, |
29 | }; | 29 | }; |
30 | use std::str::FromStr; | 30 | use std::str::FromStr; |