summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-15 16:37:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-15 16:37:33 +0800
commit91af9255c1ff9ec072d4505194675386753c21db (patch)
treef367506fa58186ee9fefcc06b54952468ed06c10 /script
parent283fb8792e9b931fc5f8c7a6a3bdf883c4f76197 (diff)
downloadlua-language-server-91af9255c1ff9ec072d4505194675386753c21db.zip
always trust `'textDocument/didChange`
Diffstat (limited to 'script')
-rw-r--r--script/provider/provider.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index b68300a9..8a500443 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -213,9 +213,6 @@ proto.on('textDocument/didOpen', function (params)
local text = doc.text
log.debug('didOpen', uri)
files.open(uri)
- if not files.isOpen(uri) then
- return
- end
files.setText(uri, text, true)
end)
@@ -234,9 +231,6 @@ proto.on('textDocument/didChange', function (params)
local doc = params.textDocument
local changes = params.contentChanges
local uri = doc.uri
- if not files.isLua(uri) and not files.isOpen(uri) then
- return
- end
--log.debug('changes', util.dump(changes))
local text = tm(uri, changes)
files.setText(uri, text, true)