diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-03 10:53:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-03 10:53:27 +0800 |
commit | be3258d18794a68fdc1cf8f1d5f16540793ff64d (patch) | |
tree | 4c3a83abb68627a90511a3b86ba0560720e9b15e | |
parent | 3120b0b63155821074ffac185acd1170cdf7029c (diff) | |
download | lua-language-server-be3258d18794a68fdc1cf8f1d5f16540793ff64d.zip |
去掉日志
-rw-r--r-- | server/src/lsp.lua | 4 | ||||
-rw-r--r-- | server/src/method/textDocument/didClose.lua | 1 | ||||
-rw-r--r-- | server/src/method/textDocument/didOpen.lua | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/server/src/lsp.lua b/server/src/lsp.lua index b2d2f959..0aaa6896 100644 --- a/server/src/lsp.lua +++ b/server/src/lsp.lua @@ -50,7 +50,6 @@ function mt:_readProtoHead() return end if header:sub(1, #'Content-Length') == 'Content-Length' then - log.debug('read proto header') return header elseif header:sub(1, #'Content-Type') == 'Content-Type' then else @@ -68,7 +67,6 @@ function mt:_readProtoContent(header) if not buf then return end - log.debug('read proto content') local suc, res = pcall(json.decode, buf) if not suc then log.error('错误的协议:', buf) @@ -77,7 +75,6 @@ function mt:_readProtoContent(header) local id = res.id local method = res.method local params = res.params - log.debug('recive', id) local response, err = self:_callback(method, params) if id then if response then @@ -94,7 +91,6 @@ function mt:_readProtoContent(header) }, } end - log.debug('send', id) end if response == nil then log.error(err or ('没有回应:' .. method)) diff --git a/server/src/method/textDocument/didClose.lua b/server/src/method/textDocument/didClose.lua index c4778293..d4edb624 100644 --- a/server/src/method/textDocument/didClose.lua +++ b/server/src/method/textDocument/didClose.lua @@ -1,6 +1,5 @@ return function (lsp, params) local doc = params.textDocument - log.debug('Close file:', doc.uri) lsp:removeText(doc.uri, doc.version) return true end diff --git a/server/src/method/textDocument/didOpen.lua b/server/src/method/textDocument/didOpen.lua index 722bba99..27fdda71 100644 --- a/server/src/method/textDocument/didOpen.lua +++ b/server/src/method/textDocument/didOpen.lua @@ -1,6 +1,5 @@ return function (lsp, params) local doc = params.textDocument - log.debug('Open file:', doc.uri) lsp:saveText(doc.uri, doc.version, doc.text) return true end |