aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/main_loop.rs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-11-30 20:28:19 +0000
committerKirill Bulatov <[email protected]>2020-12-07 21:41:08 +0000
commit6d2d27938985e210d5b5e561df8a48be20343be7 (patch)
tree511e624608a4b79c8020d41425ecdaa30186891f /crates/rust-analyzer/src/main_loop.rs
parent48acd7d455be43960d67632adc9eb176a10a8afe (diff)
Working resolve completion imports prototype
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r--crates/rust-analyzer/src/main_loop.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index 12b0946ac..21c58d959 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -436,6 +436,10 @@ impl GlobalState {
436 handlers::handle_matching_brace(s.snapshot(), p) 436 handlers::handle_matching_brace(s.snapshot(), p)
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)?
440 .on_sync::<lsp_types::request::ResolveCompletionItem>(
441 handlers::handle_resolve_completion,
442 )?
439 .on::<lsp_ext::AnalyzerStatus>(handlers::handle_analyzer_status) 443 .on::<lsp_ext::AnalyzerStatus>(handlers::handle_analyzer_status)
440 .on::<lsp_ext::SyntaxTree>(handlers::handle_syntax_tree) 444 .on::<lsp_ext::SyntaxTree>(handlers::handle_syntax_tree)
441 .on::<lsp_ext::ExpandMacro>(handlers::handle_expand_macro) 445 .on::<lsp_ext::ExpandMacro>(handlers::handle_expand_macro)
@@ -453,8 +457,6 @@ impl GlobalState {
453 .on::<lsp_types::request::GotoDefinition>(handlers::handle_goto_definition) 457 .on::<lsp_types::request::GotoDefinition>(handlers::handle_goto_definition)
454 .on::<lsp_types::request::GotoImplementation>(handlers::handle_goto_implementation) 458 .on::<lsp_types::request::GotoImplementation>(handlers::handle_goto_implementation)
455 .on::<lsp_types::request::GotoTypeDefinition>(handlers::handle_goto_type_definition) 459 .on::<lsp_types::request::GotoTypeDefinition>(handlers::handle_goto_type_definition)
456 .on::<lsp_types::request::Completion>(handlers::handle_completion)
457 .on::<lsp_types::request::ResolveCompletionItem>(handlers::handle_resolve_completion)
458 .on::<lsp_types::request::CodeLensRequest>(handlers::handle_code_lens) 460 .on::<lsp_types::request::CodeLensRequest>(handlers::handle_code_lens)
459 .on::<lsp_types::request::CodeLensResolve>(handlers::handle_code_lens_resolve) 461 .on::<lsp_types::request::CodeLensResolve>(handlers::handle_code_lens_resolve)
460 .on::<lsp_types::request::FoldingRangeRequest>(handlers::handle_folding_range) 462 .on::<lsp_types::request::FoldingRangeRequest>(handlers::handle_folding_range)