From 9cc6ca5866fcfcf22bb42f9089ff21ca51a96987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 18 Jan 2022 15:35:11 +0800 Subject: `FIX` modify luarc failed --- script/client.lua | 1 - script/library.lua | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'script') 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 -- cgit v1.2.3