diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-19 16:25:19 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-19 16:25:19 +0800 |
commit | 54559007c3918a9b08f8c11172ba54e4944416c3 (patch) | |
tree | f6c617ccb00975a063178ff4d13d3a59d3303428 /src/lsp.lua | |
parent | 62d6c3727e4792ff3983e4198de94c34bba289a2 (diff) | |
download | lua-language-server-54559007c3918a9b08f8c11172ba54e4944416c3.zip |
找不到定义不要抛错
Diffstat (limited to 'src/lsp.lua')
-rw-r--r-- | src/lsp.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lsp.lua b/src/lsp.lua index 0f84671b..6c801a33 100644 --- a/src/lsp.lua +++ b/src/lsp.lua @@ -59,7 +59,10 @@ function mt:_readAsContent(header) local id = res.id local method = res.method local params = res.params + log.debug(('执行任务[%s],ID[%s]'):format(method, id)) + local clock = os.clock() local response, err = self:_callback(method, params) + log.debug(('任务[%s]执行完毕,耗时[%.3f]秒,ID[%s]'):format(method, os.clock() - clock, id)) if response then self:_send { id = id, |