summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-16 16:08:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-16 16:08:15 +0800
commitd4ae212a31a29ab3a9ca6d0a473ff5d33c438124 (patch)
tree4e9e4f15efbae7699f3e8c0173a61a46fc31c8b5 /test
parentbb22719db1a29096a58fb7ea1a1db00a5ccfce2a (diff)
downloadlua-language-server-d4ae212a31a29ab3a9ca6d0a473ff5d33c438124.zip
cleanup
Diffstat (limited to 'test')
-rw-r--r--test/definition/bug.lua4
-rw-r--r--test/hover/init.lua8
-rw-r--r--test/type_inference/init.lua8
3 files changed, 10 insertions, 10 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua
index d9f85899..7a2cc789 100644
--- a/test/definition/bug.lua
+++ b/test/definition/bug.lua
@@ -172,7 +172,7 @@ string.xx:<?format?>()
--v.<?bar1?>
--]]
-config.set('Lua.IntelliSense.localSet', true)
+config.set('Lua.IntelliSense.traceLocalSet', true)
TEST [[
local A, B
@@ -232,7 +232,7 @@ end
local <!b!> = B:get()
print(<?b?>)
]]
-config.set('Lua.IntelliSense.localSet', false)
+config.set('Lua.IntelliSense.traceLocalSet', false)
TEST [[
g[a.b.c] = 1
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 5d275091..15bf60d4 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -838,7 +838,7 @@ local t: {
}
]]
-config.set('Lua.IntelliSense.localSet', true)
+config.set('Lua.IntelliSense.traceLocalSet', true)
TEST [[
local x
x = 1
@@ -849,7 +849,7 @@ print(<?x?>)
[[
local x: number = 1
]]
-config.set('Lua.IntelliSense.localSet', false)
+config.set('Lua.IntelliSense.traceLocalSet', false)
TEST [[
local <?x?> <close> = 1
@@ -1730,7 +1730,7 @@ t.<?x?>()
field t.x: any
]]
-config.set('Lua.IntelliSense.localSet', true)
+config.set('Lua.IntelliSense.traceLocalSet', true)
TEST [[
---@class A
local a
@@ -1743,7 +1743,7 @@ print(b.<?x?>)
[[
field A.x: any
]]
-config.set('Lua.IntelliSense.localSet', false)
+config.set('Lua.IntelliSense.traceLocalSet', false)
TEST [[
---@class A
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 96da94aa..e071fdf7 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -57,7 +57,7 @@ local var = '111'
t.<?x?> = var
]]
-config.set('Lua.IntelliSense.localSet', true)
+config.set('Lua.IntelliSense.traceLocalSet', true)
TEST 'string' [[
local <?var?>
var = '111'
@@ -68,7 +68,7 @@ local var
var = '111'
print(<?var?>)
]]
-config.set('Lua.IntelliSense.localSet', false)
+config.set('Lua.IntelliSense.traceLocalSet', false)
TEST 'function' [[
function <?xx?>()
@@ -80,13 +80,13 @@ local function <?xx?>()
end
]]
-config.set('Lua.IntelliSense.localSet', true)
+config.set('Lua.IntelliSense.traceLocalSet', true)
TEST 'function' [[
local xx
<?xx?> = function ()
end
]]
-config.set('Lua.IntelliSense.localSet', false)
+config.set('Lua.IntelliSense.traceLocalSet', false)
TEST 'table' [[
local <?t?> = {}