summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-16 15:14:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-16 15:14:10 +0800
commit0db905ab64b8e6486f04f5a48d4871eb14141379 (patch)
tree8935a7cb1b65450aa7067e0068abaff92081a3c2 /test/hover/init.lua
parent4c636f0c792fb7abcdf4d38430be23d8bfc40491 (diff)
downloadlua-language-server-0db905ab64b8e6486f04f5a48d4871eb14141379.zip
`Lua.IntelliSense.localSet`
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 089a4b51..5d275091 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -838,6 +838,7 @@ local t: {
}
]]
+config.set('Lua.IntelliSense.localSet', true)
TEST [[
local x
x = 1
@@ -848,6 +849,7 @@ print(<?x?>)
[[
local x: number = 1
]]
+config.set('Lua.IntelliSense.localSet', false)
TEST [[
local <?x?> <close> = 1
@@ -1728,6 +1730,7 @@ t.<?x?>()
field t.x: any
]]
+config.set('Lua.IntelliSense.localSet', true)
TEST [[
---@class A
local a
@@ -1740,6 +1743,7 @@ print(b.<?x?>)
[[
field A.x: any
]]
+config.set('Lua.IntelliSense.localSet', false)
TEST [[
---@class A