summaryrefslogtreecommitdiff
path: root/script-beta/provider
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/provider')
-rw-r--r--script-beta/provider/init.lua3
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