summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md2
-rw-r--r--script/config/config.lua2
-rw-r--r--script/core/noder.lua2
-rw-r--r--test/crossfile/definition.lua4
4 files changed, 5 insertions, 5 deletions
diff --git a/changelog.md b/changelog.md
index 8c838173..401ac474 100644
--- a/changelog.md
+++ b/changelog.md
@@ -5,7 +5,7 @@
+ `Lua.IntelliSense.traceLocalSet`
+ `Lua.IntelliSense.traceReturn`
+ `Lua.IntelliSense.traceBeSetted`
- + `Lua.IntelliSense.traceGlobalInject`
+ + `Lua.IntelliSense.traceFieldInject`
[read more](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)
diff --git a/script/config/config.lua b/script/config/config.lua
index 0f35ce6c..f4077b16 100644
--- a/script/config/config.lua
+++ b/script/config/config.lua
@@ -203,7 +203,7 @@ local Template = {
['Lua.IntelliSense.traceLocalSet'] = Type.Boolean >> false,
['Lua.IntelliSense.traceReturn'] = Type.Boolean >> false,
['Lua.IntelliSense.traceBeSetted'] = Type.Boolean >> false,
- ['Lua.IntelliSense.traceGlobalInject'] = Type.Boolean >> false,
+ ['Lua.IntelliSense.traceFieldInject'] = 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 ae38a555..cdf2c710 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -482,7 +482,7 @@ local function getNodeKey(source)
if methodNode then
return getNodeKey(methodNode)
end
- if config.get 'Lua.IntelliSense.traceGlobalInject' then
+ if config.get 'Lua.IntelliSense.traceFieldInject' then
local localValueID = getLocalValueID(source)
if localValueID then
return localValueID
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index 1dd14058..b233141c 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -770,7 +770,7 @@ TEST {
},
}
-config.set('Lua.IntelliSense.traceGlobalInject', true)
+config.set('Lua.IntelliSense.traceFieldInject', true)
TEST {
{
path = 'a.lua',
@@ -791,7 +791,7 @@ print(b.<?test?>)
]]
}
}
-config.set('Lua.IntelliSense.traceGlobalInject', false)
+config.set('Lua.IntelliSense.traceFieldInject', false)
TEST {
{