summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-04 16:18:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-04 16:18:03 +0800
commitc74a40802791169b2bc14716e2e8a81fd476f11f (patch)
tree42bf409dae2d7d54a1bed2e5c8a34e802a75a7ed /test/completion
parented95ca797f1d2e1e4f79a361a441d6226b867f37 (diff)
downloadlua-language-server-c74a40802791169b2bc14716e2e8a81fd476f11f.zip
#992
using `Snippet` only when `callSnippet` is `Both`
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index fa261a5f..6543e5f6 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -76,6 +76,29 @@ zac<??>
},
}
+config.set(nil, 'Lua.completion.callSnippet', 'Disable')
+TEST [[
+ass<??>
+]]
+{
+ {
+ label = 'assert(v, message)',
+ kind = define.CompletionItemKind.Function,
+ },
+}
+
+config.set(nil, 'Lua.completion.callSnippet', 'Replace')
+TEST [[
+ass<??>
+]]
+{
+ {
+ label = 'assert(v, message)',
+ kind = define.CompletionItemKind.Function,
+ },
+}
+
+config.set(nil, 'Lua.completion.callSnippet', 'Both')
TEST [[
ass<??>
]]