aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/main_loop.rs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-12-04 08:02:22 +0000
committerKirill Bulatov <[email protected]>2020-12-07 21:41:08 +0000
commit93bc009a5968c964693299263689b50b2efe9abc (patch)
tree88661f1cf81dc71fd531ad7ca323a85b270053ae /crates/rust-analyzer/src/main_loop.rs
parent74c3bbacc9b352057f2fc7ab69bd13e53022beb0 (diff)
Remove the state
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r--crates/rust-analyzer/src/main_loop.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index aad37fde1..95be2ebd3 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -436,8 +436,6 @@ 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::<lsp_types::request::ResolveCompletionItem>(handlers::handle_completion_resolve)
441 .on::<lsp_ext::AnalyzerStatus>(handlers::handle_analyzer_status) 439 .on::<lsp_ext::AnalyzerStatus>(handlers::handle_analyzer_status)
442 .on::<lsp_ext::SyntaxTree>(handlers::handle_syntax_tree) 440 .on::<lsp_ext::SyntaxTree>(handlers::handle_syntax_tree)
443 .on::<lsp_ext::ExpandMacro>(handlers::handle_expand_macro) 441 .on::<lsp_ext::ExpandMacro>(handlers::handle_expand_macro)
@@ -455,6 +453,8 @@ impl GlobalState {
455 .on::<lsp_types::request::GotoDefinition>(handlers::handle_goto_definition) 453 .on::<lsp_types::request::GotoDefinition>(handlers::handle_goto_definition)
456 .on::<lsp_types::request::GotoImplementation>(handlers::handle_goto_implementation) 454 .on::<lsp_types::request::GotoImplementation>(handlers::handle_goto_implementation)
457 .on::<lsp_types::request::GotoTypeDefinition>(handlers::handle_goto_type_definition) 455 .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_completion_resolve)
458 .on::<lsp_types::request::CodeLensRequest>(handlers::handle_code_lens) 458 .on::<lsp_types::request::CodeLensRequest>(handlers::handle_code_lens)
459 .on::<lsp_types::request::CodeLensResolve>(handlers::handle_code_lens_resolve) 459 .on::<lsp_types::request::CodeLensResolve>(handlers::handle_code_lens_resolve)
460 .on::<lsp_types::request::FoldingRangeRequest>(handlers::handle_folding_range) 460 .on::<lsp_types::request::FoldingRangeRequest>(handlers::handle_folding_range)