From b14edd27b790ea984276f40202e5ba4acba652ba 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, 30 Jan 2019 13:43:48 +0800 Subject: =?UTF-8?q?=E7=AE=80=E5=8D=95=E6=94=AF=E6=8C=81=E6=9F=A5=E6=89=BE?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/references.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src/method/textDocument/references.lua') diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua index d4478d0e..ffa4d9e3 100644 --- a/server/src/method/textDocument/references.lua +++ b/server/src/method/textDocument/references.lua @@ -17,7 +17,7 @@ return function (lsp, params) local locations = {} for i, position in ipairs(positions) do - local start, finish = position[1], position[2] + local start, finish, uri = position[1], position[2], position[3] local start_row, start_col = lines:rowcol(start) local finish_row, finish_col = lines:rowcol(finish) locations[i] = { @@ -35,6 +35,7 @@ return function (lsp, params) } } end + log.debug(table.dump(locations)) local response = locations -- cgit v1.2.3