diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 17:18:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 17:18:18 +0800 |
commit | ed21959eea02f2479ec87b6798d38b368542d881 (patch) | |
tree | 8b5c25f416cb0d9de287e88bc86778e1a50474e3 /server/test/completion | |
parent | 3100e00a07bc390514bb57822e02dbc4b0442dea (diff) | |
download | lua-language-server-ed21959eea02f2479ec87b6798d38b368542d881.zip |
修正自动完成的一个bug
Diffstat (limited to 'server/test/completion')
-rw-r--r-- | server/test/completion/init.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index e636e4f3..bb2199aa 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -536,3 +536,27 @@ tbl[ind@] kind = CompletionItemKind.Variable, }, } + +TEST [[ +return function () + local t = { + a = {}, + b = {}, + } + t.@ +end +]] +{ + { + label = 'a', + kind = CompletionItemKind.Field, + }, + { + label = 'b', + kind = CompletionItemKind.Field, + }, + { + label = 'end', + kind = CompletionItemKind.Field, + }, +} |