summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-21 14:58:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-21 14:58:09 +0800
commitb80dc1e6acaf9df1c2f53ca83f0ed9cbf8e1fa71 (patch)
treeece8bf155d668938a7c579966c3111ab2eacd30f /server/src
parent9323ee02699e8f12a7ce19df873e69256b3a2678 (diff)
downloadlua-language-server-b80dc1e6acaf9df1c2f53ca83f0ed9cbf8e1fa71.zip
修正bug
Diffstat (limited to 'server/src')
-rw-r--r--server/src/method/textDocument/references.lua2
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)