summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-27 22:00:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-27 22:00:52 +0800
commitaf9ec1db4516a0977649c0b08e4ed88078724e97 (patch)
tree96759548a53264dedb3c39560bba9fd2d6be1f44 /script/provider
parent727c3a086091d1bc2f153c88e83d7118ce3d78d2 (diff)
downloadlua-language-server-af9ec1db4516a0977649c0b08e4ed88078724e97.zip
pass tests
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua5
1 files changed, 0 insertions, 5 deletions
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)