diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 14:58:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 14:58:09 +0800 |
commit | b80dc1e6acaf9df1c2f53ca83f0ed9cbf8e1fa71 (patch) | |
tree | ece8bf155d668938a7c579966c3111ab2eacd30f | |
parent | 9323ee02699e8f12a7ce19df873e69256b3a2678 (diff) | |
download | lua-language-server-b80dc1e6acaf9df1c2f53ca83f0ed9cbf8e1fa71.zip |
修正bug
-rw-r--r-- | server/src/method/textDocument/references.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |