diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-15 16:14:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-15 16:14:28 +0800 |
commit | 5822e5ad4b7ae4d0bd1867323527bb419ed09d37 (patch) | |
tree | cf60c975f1bc3a889f3a869f99f807e77813858b /server/test | |
parent | 785d3e5963f793de712a96c88db08c684cb26bfc (diff) | |
download | lua-language-server-5822e5ad4b7ae4d0bd1867323527bb419ed09d37.zip |
修正一个bug
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/crossfile/completion.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/server/test/crossfile/completion.lua b/server/test/crossfile/completion.lua index 032991ef..b93e6ba8 100644 --- a/server/test/crossfile/completion.lua +++ b/server/test/crossfile/completion.lua @@ -374,3 +374,38 @@ TEST { }, } } + +TEST { + { + path = 'init.lua', + content = [[ + setmetatable(_G, {__index = {}}) + ]] + }, + { + path = 'a.lua', + content = [[ + print(abc) + ]] + }, + { + path = 'a.lua', + content = [[ + abcdef = 1 + ]] + }, + { + path = 'b.lua', + content = [[ + ab@ + ]], + main = true, + }, + completion = { + { + label = 'abcdef', + kind = CompletionItemKind.Enum, + detail = '= 1', + }, + } +} |