diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-18 15:35:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-18 15:35:11 +0800 |
commit | 9cc6ca5866fcfcf22bb42f9089ff21ca51a96987 (patch) | |
tree | 6d07e9e70e7bdc9c23a033f93d8d10e533b21bd3 /script | |
parent | 716091ac3646d57af28a106d4a3b15cf3b849544 (diff) | |
download | lua-language-server-9cc6ca5866fcfcf22bb42f9089ff21ca51a96987.zip |
`FIX` modify luarc failed
Diffstat (limited to 'script')
-rw-r--r-- | script/client.lua | 1 | ||||
-rw-r--r-- | script/library.lua | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/script/client.lua b/script/client.lua index 8dec85be..4f7658e8 100644 --- a/script/client.lua +++ b/script/client.lua @@ -241,7 +241,6 @@ local function tryModifyRC(uri, finalChanges, create) return false end local workspace = require 'workspace' - local loader = require 'config.loader' local path = workspace.getAbsolutePath(uri, '.luarc.json') if not path then return false diff --git a/script/library.lua b/script/library.lua index 1f2e920e..7925d414 100644 --- a/script/library.lua +++ b/script/library.lua @@ -323,7 +323,12 @@ local function apply3rd(uri, cfg, onlyMemory) local changes = {} if cfg.configs then for _, change in ipairs(cfg.configs) do - changes[#changes+1] = change + changes[#changes+1] = { + key = change.key, + action = change.action, + value = change.value, + uri = uri, + } end end |