We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setConfig
getConfig
1 parent d3aceea commit 95e3888Copy full SHA for 95e3888
script/core/command/getConfig.lua
@@ -1,5 +1,10 @@
1
local config = require 'config'
2
+local ws = require 'workspace'
3
4
+---@async
5
return function (data)
- return config.get(data[1].uri, data[1].key)
6
+ local uri = data[1].uri
7
+ local key = data[1].key
8
+ ws.awaitReady(uri)
9
+ return config.get(uri, key)
10
end
script/core/command/setConfig.lua
@@ -1,5 +1,11 @@
local client = require 'client'
-return function (data)
- client.setConfig(data)
+---@param changes config.change[]
+return function (changes)
+ for _, change in ipairs(changes) do
+ ws.awaitReady(change.uri)
+ end
+ client.setConfig(changes)
11
0 commit comments