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.
1 parent 95e3888 commit efd6c91Copy full SHA for efd6c91
script/core/command/getConfig.lua
@@ -1,10 +1,13 @@
1
local config = require 'config'
2
-local ws = require 'workspace'
+local client = require 'client'
3
+local await = require 'await'
4
5
---@async
6
return function (data)
7
local uri = data[1].uri
8
local key = data[1].key
- ws.awaitReady(uri)
9
+ while not client:isReady() do
10
+ await.sleep(0.1)
11
+ end
12
return config.get(uri, key)
13
end
script/core/command/setConfig.lua
@@ -1,11 +1,11 @@
local client = require 'client'
---@param changes config.change[]
return function (changes)
- for _, change in ipairs(changes) do
- ws.awaitReady(change.uri)
client.setConfig(changes)
0 commit comments