File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11local config = require ' config'
2- local ws = require ' workspace'
2+ local client = require ' client'
3+ local await = require ' await'
34
45--- @async
56return function (data )
67 local uri = data [1 ].uri
78 local key = data [1 ].key
8- ws .awaitReady (uri )
9+ while not client :isReady () do
10+ await .sleep (0.1 )
11+ end
912 return config .get (uri , key )
1013end
Original file line number Diff line number Diff line change 11local client = require ' client'
2- local ws = require ' workspace '
2+ local await = require ' await '
33
44--- @async
55--- @param changes config.change[]
66return function (changes )
7- for _ , change in ipairs ( changes ) do
8- ws . awaitReady ( change . uri )
7+ while not client : isReady ( ) do
8+ await . sleep ( 0.1 )
99 end
1010 client .setConfig (changes )
1111end
You can’t perform that action at this time.
0 commit comments