summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/completion/init.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 91c66237..d55d1c9a 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -2539,3 +2539,31 @@ local b = tdirect -- type . here, shows "world"
local c = tarray[1].$ -- type . here, no auto completion
]]
(EXISTS)
+
+TEST [[
+local function f()
+ if type() == '$' then
+ end
+end
+]]
+(EXISTS)
+
+--config.set('Lua.completion.callSnippet', 'Disable')
+--
+--TEST [[
+--GGG = 1
+--GGG = function ()
+--end
+--
+--GGG$
+--]]
+--{
+-- {
+-- label = 'GGG = 1',
+-- kind = define.CompletionItemKind.Variable,
+-- },
+-- {
+-- label = 'GGG()',
+-- kind = define.CompletionItemKind.Function,
+-- },
+--}