From b80dc1e6acaf9df1c2f53ca83f0ed9cbf8e1fa71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 21 Mar 2019 14:58:09 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/references.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua index ee7fa80c..8b5fcab7 100644 --- a/server/src/method/textDocument/references.lua +++ b/server/src/method/textDocument/references.lua @@ -18,7 +18,7 @@ return function (lsp, params) local locations = {} for i, position in ipairs(positions) do local start, finish, valueUri = position[1], position[2], (position[3] or uri) - local _, valueLines = lsp:loadVM(valueUri) + local _, valueLines = lsp:getVM(valueUri) if valueLines then local start_row, start_col = valueLines:rowcol(start) local finish_row, finish_col = valueLines:rowcol(finish) -- cgit v1.2.3