summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-23 16:03:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-23 16:03:35 +0800
commit5540352b5a3f71ff2e1830a77b34b220078f02ca (patch)
tree905d583e3f721dd490addf007f0c926149a00150 /server/src/method/textDocument
parent6000f70f8420e169a25fddecf993cf46d4941912 (diff)
downloadlua-language-server-5540352b5a3f71ff2e1830a77b34b220078f02ca.zip
整理代码,加入计时器
Diffstat (limited to 'server/src/method/textDocument')
-rw-r--r--server/src/method/textDocument/references.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua
index 555808ca..d4478d0e 100644
--- a/server/src/method/textDocument/references.lua
+++ b/server/src/method/textDocument/references.lua
@@ -7,6 +7,7 @@ return function (lsp, params)
if not vm then
return {}
end
+
-- lua是从1开始的,因此都要+1
local position = lines:position(params.position.line + 1, params.position.character + 1)
local positions = core.references(vm, position, declarat)