diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-25 17:12:06 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-25 17:12:06 +0800 |
commit | f06ff4184d48f1f72a853d0d6652ae9c2cc6594d (patch) | |
tree | 395cca074ee6b5f80f607c5e8f8640dbf66ebf7c /server/test/completion | |
parent | 669e20ef2cdfa8d7763f7e7bcd405986e665e526 (diff) | |
download | lua-language-server-f06ff4184d48f1f72a853d0d6652ae9c2cc6594d.zip |
param的自动完成
Diffstat (limited to 'server/test/completion')
-rw-r--r-- | server/test/completion/init.lua | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 0857e8cb..340af415 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -818,11 +818,7 @@ local abcd { label = 'abc', kind = CompletionItemKind.Class, - }, - { - label = 'xxx', - kind = CompletionItemKind.Class, - }, + } } TEST [[ @@ -831,11 +827,38 @@ TEST [[ ]] { { - label = 'abb', + label = 'abc', kind = CompletionItemKind.Class, }, +} + +TEST [[ +---@class Class +---@param x C$ +]] +{ { - label = 'abc', + label = 'Class', kind = CompletionItemKind.Class, }, } + +TEST [[ +---@param $ +function f(a, b, c) +end +]] +{ + { + label = 'a', + kind = CompletionItemKind.Unit, + }, + { + label = 'b', + kind = CompletionItemKind.Unit, + }, + { + label = 'c', + kind = CompletionItemKind.Unit, + }, +} |