From af9ec1db4516a0977649c0b08e4ed88078724e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 27 Apr 2022 22:00:52 +0800 Subject: pass tests --- script/provider/provider.lua | 5 ----- 1 file changed, 5 deletions(-) (limited to 'script/provider/provider.lua') diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 784cfe2b..6c87379e 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -226,7 +226,6 @@ m.register 'workspace/didRenameFiles' { } m.register 'textDocument/didOpen' { - ---@async function (params) local doc = params.textDocument local scheme = furi.split(doc.uri) @@ -235,7 +234,6 @@ m.register 'textDocument/didOpen' { end local uri = files.getRealUri(doc.uri) log.debug('didOpen', uri) - workspace.awaitReady(uri) local text = doc.text files.setText(uri, text, true, function (file) file.version = doc.version @@ -257,7 +255,6 @@ m.register 'textDocument/didClose' { } m.register 'textDocument/didChange' { - ---@async function (params) local doc = params.textDocument local scheme = furi.split(doc.uri) @@ -266,8 +263,6 @@ m.register 'textDocument/didChange' { end local changes = params.contentChanges local uri = files.getRealUri(doc.uri) - workspace.awaitReady(uri) - --log.debug('changes', util.dump(changes)) local text = files.getOriginText(uri) or '' local rows = files.getCachedRows(uri) text, rows = tm(text, rows, changes) -- cgit v1.2.3