diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 20:35:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 20:35:30 +0800 |
commit | b353856c94faa6ec76944f5dea70af3d31a77d14 (patch) | |
tree | be77fc7c5b93b7cd9ee45d3f11106a00370b9056 /test/completion/common.lua | |
parent | 6a894485b4eab731adbbdbf3803dca75dc35e83c (diff) | |
download | lua-language-server-b353856c94faa6ec76944f5dea70af3d31a77d14.zip |
search fields by chain exp
resolve #1222
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r-- | test/completion/common.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index 8fa8c26a..9f5e5f6f 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -3777,3 +3777,21 @@ acceptOptions({ (function (results) assert(#results == 2) end) + +TEST [[ +local t1 = {} + +t1.A = {} +t1.A.B = {} +t1.A.B.C = 1 + +local t2 = t1 + +print(t2.A.<??>) +]] +{ + { + label = 'B', + kind = define.CompletionItemKind.Field, + }, +} |