From 4c1f17af7d0085636434a8bc85e62434eb128516 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 Aug 2018 20:26:57 +0300 Subject: completion snippets --- crates/libeditor/src/completion.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/libeditor/src/completion.rs b/crates/libeditor/src/completion.rs index 2756e472a..7e8669822 100644 --- a/crates/libeditor/src/completion.rs +++ b/crates/libeditor/src/completion.rs @@ -14,6 +14,7 @@ use { #[derive(Debug)] pub struct CompletionItem { pub name: String, + pub snippet: Option } pub fn scope_completion(file: &File, offset: TextUnit) -> Option> { @@ -33,7 +34,10 @@ pub fn scope_completion(file: &File, offset: TextUnit) -> Option