diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-15 16:37:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-15 16:37:33 +0800 |
commit | 91af9255c1ff9ec072d4505194675386753c21db (patch) | |
tree | f367506fa58186ee9fefcc06b54952468ed06c10 | |
parent | 283fb8792e9b931fc5f8c7a6a3bdf883c4f76197 (diff) | |
download | lua-language-server-91af9255c1ff9ec072d4505194675386753c21db.zip |
always trust `'textDocument/didChange`
-rw-r--r-- | script/provider/provider.lua | 6 |
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) |