diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-04 15:40:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-04 15:40:10 +0800 |
commit | e65bebccf61f04a057be3c632d22fc642dbdb674 (patch) | |
tree | b8f4de2d8d7b8cff1fe53e258503ebc9b9919150 /script/provider | |
parent | b3973077759549aaedecc02d2443bdfdf029b329 (diff) | |
download | lua-language-server-e65bebccf61f04a057be3c632d22fc642dbdb674.zip |
#437 plugin blocks first opened file
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/provider.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index fb7dbe99..f7579881 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -243,6 +243,7 @@ proto.on('textDocument/didOpen', function (params) local doc = params.textDocument local uri = doc.uri local text = doc.text + log.debug('didOpen', uri) files.open(uri) plugin.awaitReady() if not files.isOpen(uri) then @@ -254,6 +255,7 @@ end) proto.on('textDocument/didClose', function (params) local doc = params.textDocument local uri = doc.uri + log.debug('didClose', uri) files.close(uri) if not files.isLua(uri) then files.remove(uri) |