summaryrefslogtreecommitdiff
path: root/server/src/method
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-05 16:13:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-05 16:13:23 +0800
commit118e6cc829235f721c12b8154f72a627bb8835d5 (patch)
tree4b6d9fd465c1d2c6178681085a980ea017a2732c /server/src/method
parentccab9b5c2439c51b345721e79e13fef18c27185d (diff)
downloadlua-language-server-118e6cc829235f721c12b8154f72a627bb8835d5.zip
使用英文
Diffstat (limited to 'server/src/method')
-rw-r--r--server/src/method/textDocument/definition.lua2
-rw-r--r--server/src/method/textDocument/implementation.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/server/src/method/textDocument/definition.lua b/server/src/method/textDocument/definition.lua
index 60130935..90c964f3 100644
--- a/server/src/method/textDocument/definition.lua
+++ b/server/src/method/textDocument/definition.lua
@@ -39,7 +39,7 @@ return function (lsp, params)
local response = locations
local passed_clock = os.clock() - start_clock
if passed_clock >= 0.01 then
- log.warn(('[转到定义]耗时[%.3f]秒,文件大小[%s]字节'):format(passed_clock, #lines.buf))
+ log.warn(('[Goto Definition] takes [%.3f] sec, size [%s] bits.'):format(passed_clock, #lines.buf))
end
return response
diff --git a/server/src/method/textDocument/implementation.lua b/server/src/method/textDocument/implementation.lua
index 6d3cd0ac..f035c749 100644
--- a/server/src/method/textDocument/implementation.lua
+++ b/server/src/method/textDocument/implementation.lua
@@ -5,7 +5,7 @@ return function (lsp, params)
local uri = params.textDocument.uri
local text = lsp:loadText(uri)
if not text then
- return nil, '找不到文件:' .. uri
+ return nil, 'Cannot find file: ' .. uri
end
local start_clock = os.clock()
-- lua是从1开始的,因此都要+1
@@ -44,7 +44,7 @@ return function (lsp, params)
local response = locations
local passed_clock = os.clock() - start_clock
if passed_clock >= 0.01 then
- log.warn(('[转到实现]耗时[%.3f]秒,文件大小[%s]字节'):format(passed_clock, #text))
+ log.warn(('[Goto Implementation] takes [%.3f] sec, size [%s] bits.'):format(passed_clock, #text))
end
return response