summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-11-23 17:02:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-11-23 17:02:29 +0800
commit9d2265692897472cb1efc3891ef89fe3a58126b0 (patch)
tree5a318c3c3132283a49e01a644dd9d76e80964684
parent10569576cf9ff1a560a5b93a031eeb55e4d20cfe (diff)
downloadlua-language-server-9d2265692897472cb1efc3891ef89fe3a58126b0.zip
加个日志查bug
-rw-r--r--server/src/method/textDocument/didClose.lua1
-rw-r--r--server/src/method/textDocument/didOpen.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/server/src/method/textDocument/didClose.lua b/server/src/method/textDocument/didClose.lua
index d4edb624..c4778293 100644
--- a/server/src/method/textDocument/didClose.lua
+++ b/server/src/method/textDocument/didClose.lua
@@ -1,5 +1,6 @@
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 27fdda71..722bba99 100644
--- a/server/src/method/textDocument/didOpen.lua
+++ b/server/src/method/textDocument/didOpen.lua
@@ -1,5 +1,6 @@
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