Skip to content

Commit af9ec1d

Browse files
committed
pass tests
1 parent 727c3a0 commit af9ec1d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

script/provider/provider.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ m.register 'workspace/didRenameFiles' {
226226
}
227227

228228
m.register 'textDocument/didOpen' {
229-
---@async
230229
function (params)
231230
local doc = params.textDocument
232231
local scheme = furi.split(doc.uri)
@@ -235,7 +234,6 @@ m.register 'textDocument/didOpen' {
235234
end
236235
local uri = files.getRealUri(doc.uri)
237236
log.debug('didOpen', uri)
238-
workspace.awaitReady(uri)
239237
local text = doc.text
240238
files.setText(uri, text, true, function (file)
241239
file.version = doc.version
@@ -257,7 +255,6 @@ m.register 'textDocument/didClose' {
257255
}
258256

259257
m.register 'textDocument/didChange' {
260-
---@async
261258
function (params)
262259
local doc = params.textDocument
263260
local scheme = furi.split(doc.uri)
@@ -266,8 +263,6 @@ m.register 'textDocument/didChange' {
266263
end
267264
local changes = params.contentChanges
268265
local uri = files.getRealUri(doc.uri)
269-
workspace.awaitReady(uri)
270-
--log.debug('changes', util.dump(changes))
271266
local text = files.getOriginText(uri) or ''
272267
local rows = files.getCachedRows(uri)
273268
text, rows = tm(text, rows, changes)

0 commit comments

Comments
 (0)