aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/main_loop
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-03 13:10:06 +0100
committerAleksey Kladov <[email protected]>2018-09-03 13:10:06 +0100
commit4798a89a12f40af17174a160f6d6a2f1c53db8d6 (patch)
tree2a97f379f624127739188f35babfa9710b104bf4 /crates/server/src/main_loop
parent58480b9190d8851abf7f634820188e33efed286d (diff)
Complete params
Diffstat (limited to 'crates/server/src/main_loop')
-rw-r--r--crates/server/src/main_loop/handlers.rs3
1 files changed, 2 insertions, 1 deletions
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(
345 let items = items.into_iter() 345 let items = items.into_iter()
346 .map(|item| { 346 .map(|item| {
347 let mut res = CompletionItem { 347 let mut res = CompletionItem {
348 label: item.name, 348 label: item.label,
349 filter_text: item.lookup,
349 .. Default::default() 350 .. Default::default()
350 }; 351 };
351 if let Some(snip) = item.snippet { 352 if let Some(snip) = item.snippet {