summaryrefslogtreecommitdiff
path: root/server/test/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-27 17:50:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-27 17:50:38 +0800
commit9474261f54ae620a853856f9adce0083ce66dec7 (patch)
tree96a8d98a7216092ef5fbc58507e078425a3ea762 /server/test/completion/init.lua
parent927928f3585342dbb3c8960fe7158e25e6536126 (diff)
downloadlua-language-server-9474261f54ae620a853856f9adce0083ce66dec7.zip
居然不能吃之前的字符
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r--server/test/completion/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index b4ec7fd7..4d1c3e64 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -416,6 +416,11 @@ self.results.list[#@]
{
label = 'self.results.list+1',
kind = CompletionItemKind.Snippet,
+ textEdit = {
+ start = 20,
+ finish = 21,
+ newText = 'self.results.list+1] = ',
+ },
}
}
@@ -426,6 +431,11 @@ fff[#ff@]
{
label = 'fff+1',
kind = CompletionItemKind.Snippet,
+ textEdit = {
+ start = 6,
+ finish = 8,
+ newText = 'fff+1] = ',
+ },
},
{
label = 'fff',