diff options
author | Arcanox <arcanox@arcanox.me> | 2021-09-25 00:20:02 -0500 |
---|---|---|
committer | Arcanox <arcanox@arcanox.me> | 2021-09-25 00:20:02 -0500 |
commit | a465b35d5eefc11c1daf3c29b41ce95ee098a782 (patch) | |
tree | 4d75d02b753f5d39cfab28ce961d5b4862fdb094 /script/core | |
parent | 9df85719fb0e2e91f1e6d5621adb3063a64594c0 (diff) | |
download | lua-language-server-a465b35d5eefc11c1daf3c29b41ce95ee098a782.zip |
Fix the config setting not updating editors when it's changed
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/semantic-tokens.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/semantic-tokens.lua b/script/core/semantic-tokens.lua index d34899ad..3ff4f418 100644 --- a/script/core/semantic-tokens.lua +++ b/script/core/semantic-tokens.lua @@ -142,7 +142,7 @@ Care['getlocal'] = function (source, results) -- search all defs for _, def in ipairs(vm.getDefs(source)) do if def.bindDocs then - for i, doc in ipairs(def.bindDocs) do + for _, doc in ipairs(def.bindDocs) do if doc.type == "doc.class" and doc.bindSources then for _, src in ipairs(doc.bindSources) do if src == def then @@ -368,7 +368,7 @@ local function buildTokens(uri, results) return tokens end -config.watch(function (key, value, oldValue) +config.watch(function (key, value) if key == 'Lua.color.mode' then isEnhanced = value == 'SemanticEnhanced' end |