diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-16 15:14:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-16 15:14:10 +0800 |
commit | 0db905ab64b8e6486f04f5a48d4871eb14141379 (patch) | |
tree | 8935a7cb1b65450aa7067e0068abaff92081a3c2 /test/type_inference | |
parent | 4c636f0c792fb7abcdf4d38430be23d8bfc40491 (diff) | |
download | lua-language-server-0db905ab64b8e6486f04f5a48d4871eb14141379.zip |
`Lua.IntelliSense.localSet`
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index a3764328..96da94aa 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -57,6 +57,7 @@ local var = '111' t.<?x?> = var ]] +config.set('Lua.IntelliSense.localSet', true) TEST 'string' [[ local <?var?> var = '111' @@ -67,6 +68,7 @@ local var var = '111' print(<?var?>) ]] +config.set('Lua.IntelliSense.localSet', false) TEST 'function' [[ function <?xx?>() @@ -78,11 +80,13 @@ local function <?xx?>() end ]] +config.set('Lua.IntelliSense.localSet', true) TEST 'function' [[ local xx <?xx?> = function () end ]] +config.set('Lua.IntelliSense.localSet', false) TEST 'table' [[ local <?t?> = {} |