summaryrefslogtreecommitdiff
path: root/test/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-01 22:21:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-01 22:21:26 +0800
commit80a8ffb500e4e4cebf21891698e682df8f4bd1d0 (patch)
treea18506c6dffddec23fe99ab32d5ff290da766c4c /test/completion/init.lua
parent384ee42079a801675bf9c00870c9f9dba4135773 (diff)
downloadlua-language-server-80a8ffb500e4e4cebf21891698e682df8f4bd1d0.zip
fix sometimes `type() ==` does not work
Diffstat (limited to 'test/completion/init.lua')
-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,
+-- },
+--}