From ef7e113a22eebdf6c56b0060c93cdf9df372d3d8 Mon Sep 17 00:00:00 2001 From: sumneko Date: Tue, 23 Apr 2019 15:40:18 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=BD=AC=E5=88=B0=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=80=97=E6=97=B6=E8=BF=87=E9=AB=98=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/definition.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/method') diff --git a/server/src/method/textDocument/definition.lua b/server/src/method/textDocument/definition.lua index e5656a52..7370a8b7 100644 --- a/server/src/method/textDocument/definition.lua +++ b/server/src/method/textDocument/definition.lua @@ -11,7 +11,7 @@ local function findResult(lsp, uri, position) local locations = {} for i, position in ipairs(positions) do local start, finish, valueUri = position[1], position[2], (position[3] or uri) - local vm, valueLines = lsp:loadVM(valueUri) + local vm, 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