diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-23 15:40:18 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-23 15:40:18 +0800 |
commit | ef7e113a22eebdf6c56b0060c93cdf9df372d3d8 (patch) | |
tree | f00ca9a94166547256532c6e6dc30d62e11a4394 /server/src/method/textDocument/definition.lua | |
parent | 246711c5919aff9c471939285685827831b8fd08 (diff) | |
download | lua-language-server-ef7e113a22eebdf6c56b0060c93cdf9df372d3d8.zip |
修正转到定义耗时过高的bug
Diffstat (limited to 'server/src/method/textDocument/definition.lua')
-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) |