diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-08 15:51:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-08 15:51:43 +0800 |
commit | 46069db446bd54fc3b3ee5d7e1a80d35ec3240b7 (patch) | |
tree | cbeaeeecf68366d4236b2a88e886796e058d14a6 /test/completion/init.lua | |
parent | 419052ee299b2b9c23dfd644fea1ae92d197a633 (diff) | |
download | lua-language-server-46069db446bd54fc3b3ee5d7e1a80d35ec3240b7.zip |
fix #443
Diffstat (limited to 'test/completion/init.lua')
-rw-r--r-- | test/completion/init.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua index e0ac1a2d..930bc92f 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -2203,3 +2203,25 @@ local x = { kind = define.CompletionItemKind.EnumMember, }, } + +Cared['insertText'] = true +TEST [[ +---@class A.B.C +local m + +function m.f() +end + +m.f$ +]]{ + { + label = "f", + kind = define.CompletionItemKind.Function, + }, + { + label = "f()", + kind = define.CompletionItemKind.Snippet, + insertText = 'f()', + }, +} +Cared['insertText'] = nil |