summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/config/config.lua3
-rw-r--r--script/core/noder.lua2
-rw-r--r--test/definition/bug.lua4
-rw-r--r--test/hover/init.lua8
-rw-r--r--test/type_inference/init.lua8
5 files changed, 13 insertions, 12 deletions
diff --git a/script/config/config.lua b/script/config/config.lua
index 869d1f0f..bd73a77f 100644
--- a/script/config/config.lua
+++ b/script/config/config.lua
@@ -200,8 +200,9 @@ local Template = {
['Lua.hint.paramName'] = Type.String >> 'All',
['Lua.window.statusBar'] = Type.Boolean >> true,
['Lua.window.progressBar'] = Type.Boolean >> true,
- ['Lua.IntelliSense.localSet'] = Type.Boolean >> false,
+ ['Lua.IntelliSense.traceLocalSet'] = Type.Boolean >> false,
['Lua.IntelliSense.traceReturn'] = Type.Boolean >> false,
+ ['Lua.IntelliSense.traceBeSetted'] = Type.Boolean >> false,
['Lua.telemetry.enable'] = Type.Or(Type.Boolean >> false, Type.Nil),
['files.associations'] = Type.Hash(Type.String, Type.String),
['files.exclude'] = Type.Hash(Type.String, Type.Boolean),
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 90f92599..308ce876 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -748,7 +748,7 @@ local function bindValue(noders, source, id)
end
if source.type == 'getlocal'
or source.type == 'setlocal' then
- if not config.get 'Lua.IntelliSense.localSet' then
+ if not config.get 'Lua.IntelliSense.traceLocalSet' then
return
end
source = source.node
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 128d1b8f..f56840e9 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -836,7 +836,7 @@ local t: {
}
]]
-config.set('Lua.IntelliSense.localSet', true)
+config.set('Lua.IntelliSense.traceLocalSet', true)
TEST [[
local x
x = 1
@@ -847,7 +847,7 @@ print(<?x?>)
[[
local x: number = 1
]]
-config.set('Lua.IntelliSense.localSet', false)
+config.set('Lua.IntelliSense.traceLocalSet', false)
TEST [[
local <?x?> <close> = 1
@@ -1689,7 +1689,7 @@ t.<?x?>()
field t.x: any
]]
-config.set('Lua.IntelliSense.localSet', true)
+config.set('Lua.IntelliSense.traceLocalSet', true)
TEST [[
---@class A
local a
@@ -1702,7 +1702,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?> = {}