diff options
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/provider/client.lua | 2 | ||||
-rw-r--r-- | script-beta/provider/provider.lua | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/script-beta/provider/client.lua b/script-beta/provider/client.lua index a2671597..c1b16f0f 100644 --- a/script-beta/provider/client.lua +++ b/script-beta/provider/client.lua @@ -1,4 +1,5 @@ local nonil = require 'without-check-nil' +local util = require 'utility' local m = {} @@ -10,6 +11,7 @@ function m.client() end function m.init(t) + log.debug('Client init', util.dump(t)) m.info = t end diff --git a/script-beta/provider/provider.lua b/script-beta/provider/provider.lua index fc8b8001..23860f82 100644 --- a/script-beta/provider/provider.lua +++ b/script-beta/provider/provider.lua @@ -65,7 +65,7 @@ local function updateConfig() end proto.on('initialize', function (params) - --log.debug(util.dump(params)) + client.init(params) if params.workspaceFolders then local name = params.workspaceFolders[1].name local uri = params.workspaceFolders[1].uri @@ -78,7 +78,6 @@ end) proto.on('initialized', function (params) updateConfig() - client.init(params) proto.awaitRequest('client/registerCapability', { registrations = { -- 监视文件变化 |