diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-23 16:03:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-23 16:03:35 +0800 |
commit | 5540352b5a3f71ff2e1830a77b34b220078f02ca (patch) | |
tree | 905d583e3f721dd490addf007f0c926149a00150 /server/src/method/textDocument | |
parent | 6000f70f8420e169a25fddecf993cf46d4941912 (diff) | |
download | lua-language-server-5540352b5a3f71ff2e1830a77b34b220078f02ca.zip |
整理代码,加入计时器
Diffstat (limited to 'server/src/method/textDocument')
-rw-r--r-- | server/src/method/textDocument/references.lua | 1 |
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) |