diff options
author | unknown <sumnekosun@intranet.123u.com> | 2019-04-02 11:49:54 +0800 |
---|---|---|
committer | unknown <sumnekosun@intranet.123u.com> | 2019-04-02 11:49:54 +0800 |
commit | b088d81fee88309a7744dd63117a787004ae8a99 (patch) | |
tree | a2ae31977a8d43a51976c46c3d2544cc2d41c627 /server/test/completion | |
parent | a485c7f464f2abb91311565c2f1078b5d381f808 (diff) | |
download | lua-language-server-b088d81fee88309a7744dd63117a787004ae8a99.zip |
自动完成不再过滤完全相同的值
Diffstat (limited to 'server/test/completion')
-rw-r--r-- | server/test/completion/init.lua | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 5ae598c2..a512ee5e 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -138,7 +138,11 @@ zabcde@ { label = 'zabcdefg', kind = CompletionItemKind.Variable, - } + }, + { + label = 'zabcde', + kind = CompletionItemKind.Variable, + }, } TEST [[ @@ -389,7 +393,7 @@ print(fff) } TEST [[ -local function f(f@) +local function f(ff@) print(fff) end ]] @@ -631,7 +635,12 @@ TEST [[ local xxxx xxxx@ ]] -(nil) +{ + { + label = 'xxxx', + kind = CompletionItemKind.Variable, + }, +} TEST [[ local xxxx @@ -640,9 +649,13 @@ xxxx@ ]] { { + label = 'xxxx', + kind = CompletionItemKind.Variable, + }, + { label = 'XXXX', kind = CompletionItemKind.Variable, - } + }, } TEST [[ |