Make completion resolve async

This commit is contained in:
Kirill Bulatov
2020-12-03 15:58:18 +02:00
parent f6d2540df0
commit 74c3bbacc9
7 changed files with 115 additions and 52 deletions

View File

@@ -437,9 +437,7 @@ impl GlobalState {
})?
.on_sync::<lsp_ext::MemoryUsage>(|s, p| handlers::handle_memory_usage(s, p))?
.on_sync::<lsp_types::request::Completion>(handlers::handle_completion)?
.on_sync::<lsp_types::request::ResolveCompletionItem>(
handlers::handle_completion_resolve,
)?
.on::<lsp_types::request::ResolveCompletionItem>(handlers::handle_completion_resolve)
.on::<lsp_ext::AnalyzerStatus>(handlers::handle_analyzer_status)
.on::<lsp_ext::SyntaxTree>(handlers::handle_syntax_tree)
.on::<lsp_ext::ExpandMacro>(handlers::handle_expand_macro)