diff options
-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 |