From 5540352b5a3f71ff2e1830a77b34b220078f02ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 23 Jan 2019 16:03:35 +0800 Subject: =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81=EF=BC=8C=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E8=AE=A1=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/references.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'server/src/method/textDocument') 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) -- cgit v1.2.3