summaryrefslogtreecommitdiff
path: root/script/core/command/setConfig.lua
blob: c61aa942a430418856ee15582fee7f85fb9ed873 (plain)
1
2
3
4
5
6
7
8
9
10
11
local client = require 'client'
local ws     = require 'workspace'

---@async
---@param changes config.change[]
return function (changes)
    for _, change in ipairs(changes) do
        ws.awaitReady(change.uri)
    end
    client.setConfig(changes)
end