summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 41338e59..11501b9c 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -215,8 +215,7 @@ m.register 'textDocument/didOpen' {
local uri = files.getRealUri(doc.uri)
workspace.awaitReady(uri)
local text = doc.text
- log.debug('didOpen', uri)
- files.setText(uri, text, true)
+ files.setText(uri, text, true, doc.version)
files.open(uri)
end
}
@@ -244,7 +243,7 @@ m.register 'textDocument/didChange' {
local text = files.getOriginText(uri) or ''
local rows = files.getCachedRows(uri)
text, rows = tm(text, rows, changes)
- files.setText(uri, text, true)
+ files.setText(uri, text, true, doc.version)
files.setCachedRows(uri, rows)
end
}