From 4798a89a12f40af17174a160f6d6a2f1c53db8d6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 3 Sep 2018 15:10:06 +0300 Subject: Complete params --- crates/server/src/main_loop/handlers.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/server/src/main_loop') diff --git a/crates/server/src/main_loop/handlers.rs b/crates/server/src/main_loop/handlers.rs index 93d8bd9fe..898195f6d 100644 --- a/crates/server/src/main_loop/handlers.rs +++ b/crates/server/src/main_loop/handlers.rs @@ -345,7 +345,8 @@ pub fn handle_completion( let items = items.into_iter() .map(|item| { let mut res = CompletionItem { - label: item.name, + label: item.label, + filter_text: item.lookup, .. Default::default() }; if let Some(snip) = item.snippet { -- cgit v1.2.3