summaryrefslogtreecommitdiff
path: root/test/definition/bug.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-16 15:14:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-18 17:10:32 +0800
commit4f67a3a783ca55c28d23eb29a5b7089cbcab7625 (patch)
treeea59bb177e5860bab009e591e4dda8163e026b5c /test/definition/bug.lua
parent681a815fb2492a5cdc443ef150f5c5cdccedcf2f (diff)
downloadlua-language-server-4f67a3a783ca55c28d23eb29a5b7089cbcab7625.zip
`Lua.IntelliSense.localSet`
Diffstat (limited to 'test/definition/bug.lua')
-rw-r--r--test/definition/bug.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua
index aace2aee..d9f85899 100644
--- a/test/definition/bug.lua
+++ b/test/definition/bug.lua
@@ -1,3 +1,5 @@
+local config = require "config"
+
TEST [[
local <!x!>
function _(x)
@@ -170,6 +172,7 @@ string.xx:<?format?>()
--v.<?bar1?>
--]]
+config.set('Lua.IntelliSense.localSet', true)
TEST [[
local A, B
@@ -229,6 +232,7 @@ end
local <!b!> = B:get()
print(<?b?>)
]]
+config.set('Lua.IntelliSense.localSet', false)
TEST [[
g[a.b.c] = 1