@@ -226,7 +226,6 @@ m.register 'workspace/didRenameFiles' {
226226}
227227
228228m .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
259257m .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