summaryrefslogtreecommitdiff
path: root/test/completion/continue.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-19 17:39:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-19 17:39:27 +0800
commit0ec4d69bc4e34c3c11c85d17edc0e98e9a719c7e (patch)
treefa17e6e406c96d88204c093af450fb41866d4174 /test/completion/continue.lua
parent5e0624bcb55e1a7c2edece6e661dc3cb056ded7e (diff)
downloadlua-language-server-0ec4d69bc4e34c3c11c85d17edc0e98e9a719c7e.zip
always incomplete
Diffstat (limited to 'test/completion/continue.lua')
-rw-r--r--test/completion/continue.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/completion/continue.lua b/test/completion/continue.lua
new file mode 100644
index 00000000..4644c745
--- /dev/null
+++ b/test/completion/continue.lua
@@ -0,0 +1,32 @@
+local define = require 'proto.define'
+local config = require 'config'
+
+config.set('Lua.completion.callSnippet', 'Disable')
+config.set('Lua.completion.keywordSnippet', 'Disable')
+config.set('Lua.completion.workspaceWord', false)
+
+ContinueTyping = true
+
+TEST [[
+local zabcde
+za$
+]]
+{
+ {
+ label = 'zabcde',
+ kind = define.CompletionItemKind.Variable,
+ }
+}
+
+TEST [[
+-- zabcde
+io.z$
+]]
+{
+ {
+ label = 'zabcde',
+ kind = define.CompletionItemKind.Text,
+ }
+}
+
+ContinueTyping = false