diff options
-rw-r--r-- | server/src/method/textDocument/definition.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |