summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/definition.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-05 17:59:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-05 17:59:36 +0800
commita8fd968dd81edb45d13f527cebd405d5abbbfd80 (patch)
treeb5773c58e4835dbf5c0f7c95b4c9b9e3046117e8 /server/src/method/textDocument/definition.lua
parent663a54fd01e069626e7e41bdab0223f01980711f (diff)
downloadlua-language-server-a8fd968dd81edb45d13f527cebd405d5abbbfd80.zip
把耗时统计挪走
Diffstat (limited to 'server/src/method/textDocument/definition.lua')
-rw-r--r--server/src/method/textDocument/definition.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/server/src/method/textDocument/definition.lua b/server/src/method/textDocument/definition.lua
index 90c964f3..a0a25f46 100644
--- a/server/src/method/textDocument/definition.lua
+++ b/server/src/method/textDocument/definition.lua
@@ -2,7 +2,6 @@ local parser = require 'parser'
local matcher = require 'matcher'
return function (lsp, params)
- local start_clock = os.clock()
local uri = params.textDocument.uri
local results, lines = lsp:loadText(uri)
if not results then
@@ -37,10 +36,6 @@ return function (lsp, params)
end
local response = locations
- local passed_clock = os.clock() - start_clock
- if passed_clock >= 0.01 then
- log.warn(('[Goto Definition] takes [%.3f] sec, size [%s] bits.'):format(passed_clock, #lines.buf))
- end
return response
end