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/proto/proto.lua | |
parent | b204653f81c4139fa1933ba0bdbc3ffe9678e82e (diff) | |
download | lua-language-server-99638341030dfc794bfd5d292ef84be918add228.zip |
一些尝试性的优化
Diffstat (limited to 'script-beta/proto/proto.lua')
-rw-r--r-- | script-beta/proto/proto.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script-beta/proto/proto.lua b/script-beta/proto/proto.lua index f04653d5..5e1ad38f 100644 --- a/script-beta/proto/proto.lua +++ b/script-beta/proto/proto.lua @@ -34,7 +34,7 @@ function m.response(id, res) data.id = id data.result = res local buf = jsonrpc.encode(data) - log.debug('Response', id, #buf) + --log.debug('Response', id, #buf) io.stdout:write(buf) end @@ -50,7 +50,7 @@ function m.responseErr(id, code, message) message = message, } } - log.debug('ResponseErr', id, #buf) + --log.debug('ResponseErr', id, #buf) io.stdout:write(buf) end @@ -59,7 +59,7 @@ function m.notify(name, params) method = name, params = params, } - log.debug('Notify', name, #buf) + --log.debug('Notify', name, #buf) io.stdout:write(buf) end @@ -70,7 +70,7 @@ function m.awaitRequest(name, params) method = name, params = params, } - log.debug('Request', name, #buf) + --log.debug('Request', name, #buf) io.stdout:write(buf) return await.wait(function (waker) m.waiting[id] = waker |