summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-03 16:15:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-03 16:15:46 +0800
commitd92837f7ddcd2e4da3148e6ceba6aded46d6edfd (patch)
tree6036cc41fb861f9f1a9b85ec637d55f072480b22 /test-beta
parent9a69e16a4664b4deee3693d53a74336615700a6d (diff)
downloadlua-language-server-d92837f7ddcd2e4da3148e6ceba6aded46d6edfd.zip
doc.param 的自动完成
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/completion/init.lua21
1 files changed, 20 insertions, 1 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua
index 81935fa9..630c9b47 100644
--- a/test-beta/completion/init.lua
+++ b/test-beta/completion/init.lua
@@ -1259,7 +1259,7 @@ TEST [[
},
}
-do return end
+Cared['insertText'] = true
TEST [[
---@param $
function f(a, b, c)
@@ -1289,6 +1289,18 @@ a any
}
TEST [[
+---@param aa$
+function f(aaa, bbb, ccc)
+end
+]]
+{
+ {
+ label = 'aaa',
+ kind = define.CompletionItemKind.Interface,
+ },
+}
+
+TEST [[
local function f()
---@param $
function f(a, b, c)
@@ -1346,6 +1358,13 @@ a any
},
}
+TEST [[
+---@param aaa $
+function f(aaa, bbb, ccc)
+end
+]]
+(EXISTS)
+
do return end
TEST [[
---@param xyz Class