Skip to content

Commit 390629b

Browse files
committed
support multi configs modifying
1 parent 194297f commit 390629b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/core/command/setConfig.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local client = require 'client'
22

33
return function (data)
4-
client.setConfig { data }
4+
client.setConfig(data)
55
end

script/provider/provider.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ m.register 'workspace/executeCommand' {
991991
return core(params.arguments[1])
992992
elseif command == 'lua.setConfig' then
993993
local core = require 'core.command.setConfig'
994-
return core(params.arguments[1])
994+
return core(params.arguments)
995995
elseif command == 'lua.autoRequire' then
996996
local core = require 'core.command.autoRequire'
997997
return core(params.arguments[1])

0 commit comments

Comments
 (0)