diff options
author | Kirill Bulatov <[email protected]> | 2020-12-03 13:58:18 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-12-07 21:41:08 +0000 |
commit | 74c3bbacc9b352057f2fc7ab69bd13e53022beb0 (patch) | |
tree | 32f3407cfb6851539e7ebf6b1c4d77a78c364efa /crates/rust-analyzer/src/main_loop.rs | |
parent | f6d2540df09bc0dcd8a748ec0ed7cb33ac76d9f2 (diff) |
Make completion resolve async
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index db30b3dce..aad37fde1 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -437,9 +437,7 @@ impl GlobalState { | |||
437 | })? | 437 | })? |
438 | .on_sync::<lsp_ext::MemoryUsage>(|s, p| handlers::handle_memory_usage(s, p))? | 438 | .on_sync::<lsp_ext::MemoryUsage>(|s, p| handlers::handle_memory_usage(s, p))? |
439 | .on_sync::<lsp_types::request::Completion>(handlers::handle_completion)? | 439 | .on_sync::<lsp_types::request::Completion>(handlers::handle_completion)? |
440 | .on_sync::<lsp_types::request::ResolveCompletionItem>( | 440 | .on::<lsp_types::request::ResolveCompletionItem>(handlers::handle_completion_resolve) |
441 | handlers::handle_completion_resolve, | ||
442 | )? | ||
443 | .on::<lsp_ext::AnalyzerStatus>(handlers::handle_analyzer_status) | 441 | .on::<lsp_ext::AnalyzerStatus>(handlers::handle_analyzer_status) |
444 | .on::<lsp_ext::SyntaxTree>(handlers::handle_syntax_tree) | 442 | .on::<lsp_ext::SyntaxTree>(handlers::handle_syntax_tree) |
445 | .on::<lsp_ext::ExpandMacro>(handlers::handle_expand_macro) | 443 | .on::<lsp_ext::ExpandMacro>(handlers::handle_expand_macro) |