diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-10 16:11:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-10 16:11:49 +0800 |
commit | 99638341030dfc794bfd5d292ef84be918add228 (patch) | |
tree | 8093560df8eead158e28cdb7dd4a98489a17efba /script-beta/provider/init.lua | |
parent | b204653f81c4139fa1933ba0bdbc3ffe9678e82e (diff) | |
download | lua-language-server-99638341030dfc794bfd5d292ef84be918add228.zip |
一些尝试性的优化
Diffstat (limited to 'script-beta/provider/init.lua')
-rw-r--r-- | script-beta/provider/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/provider/init.lua b/script-beta/provider/init.lua index 15731b46..985ec6be 100644 --- a/script-beta/provider/init.lua +++ b/script-beta/provider/init.lua @@ -140,7 +140,9 @@ proto.on('textDocument/didChange', function (params) local uri = doc.uri local text = change[1].text if files.isLua(uri) or files.isOpen(uri) then + log.debug('didChange:', uri) files.setText(uri, text) + log.debug('setText:', #text) end end) @@ -296,6 +298,7 @@ end) proto.on('textDocument/completion', function (params) --log.info(util.dump(params)) local core = require 'core.completion' + log.debug('completion:', params.context and params.context.triggerKind, params.context and params.context.triggerCharacter) local uri = params.textDocument.uri if not files.exists(uri) then return nil |