summaryrefslogtreecommitdiff
path: root/script/core
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 /script/core
parent4c636f0c792fb7abcdf4d38430be23d8bfc40491 (diff)
downloadlua-language-server-0db905ab64b8e6486f04f5a48d4871eb14141379.zip
`Lua.IntelliSense.localSet`
Diffstat (limited to 'script/core')
-rw-r--r--script/core/noder.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index e40df0a2..999b797e 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -2,6 +2,7 @@ local util = require 'utility'
local guide = require 'parser.guide'
local collector = require 'core.collector'
local files = require 'files'
+local config = require 'config'
local tostring = tostring
local error = error
@@ -747,6 +748,9 @@ local function bindValue(noders, source, id)
end
if source.type == 'getlocal'
or source.type == 'setlocal' then
+ if not config.get 'Lua.IntelliSense.localSet' then
+ return
+ end
source = source.node
end
if source.bindDocs and value.type ~= 'table' then