Skip to content

Commit 9cc6ca5

Browse files
committed
FIX modify luarc failed
1 parent 716091a commit 9cc6ca5

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# changelog
22

3+
## 2.6.1
4+
* `FIX` modify luarc failed
5+
36
## 2.6.0
47
`2022-1-13`
58
* `NEW` supports multi-workspace in server side, for developers of language clients, please [read here](https://github.com/sumneko/lua-language-server/wiki/Multi-workspace-supports) to learn more.

script/client.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ local function tryModifyRC(uri, finalChanges, create)
241241
return false
242242
end
243243
local workspace = require 'workspace'
244-
local loader = require 'config.loader'
245244
local path = workspace.getAbsolutePath(uri, '.luarc.json')
246245
if not path then
247246
return false

script/library.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,12 @@ local function apply3rd(uri, cfg, onlyMemory)
323323
local changes = {}
324324
if cfg.configs then
325325
for _, change in ipairs(cfg.configs) do
326-
changes[#changes+1] = change
326+
changes[#changes+1] = {
327+
key = change.key,
328+
action = change.action,
329+
value = change.value,
330+
uri = uri,
331+
}
327332
end
328333
end
329334

0 commit comments

Comments
 (0)