diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-19 15:10:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-19 15:10:07 +0800 |
commit | 2c07a7a12bf840e1a90abc117fd5e69866f76fdb (patch) | |
tree | e3283b21e345a5d6a3fa062bd1ccb5503888b61f /test-beta | |
parent | a1c4ebfb23152e23bf556811aad39bf917c5cb60 (diff) | |
download | lua-language-server-2c07a7a12bf840e1a90abc117fd5e69866f76fdb.zip |
自动完成和全局变量相关的一些bug
Diffstat (limited to 'test-beta')
-rw-r--r-- | test-beta/completion/init.lua | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua index 7d1ca368..50afb137 100644 --- a/test-beta/completion/init.lua +++ b/test-beta/completion/init.lua @@ -1201,9 +1201,36 @@ io$ (EXISTS) TEST [[ -loadfile$ +loadstring$ ]] -(EXISTS) +{ + { + label = 'loadstring', + kind = define.CompletionItemKind.Function, + deprecated = true, + }, + { + label = 'loadstring()', + kind = define.CompletionItemKind.Snippet, + deprecated = true, + }, +} + +TEST [[ +function loadstring() +end +loadstring$ +]] +{ + { + label = 'loadstring', + kind = define.CompletionItemKind.Function, + }, + { + label = 'loadstring()', + kind = define.CompletionItemKind.Snippet, + }, +} TEST [[ debug.setcsta$ |