summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/definition.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-16 15:05:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-16 15:05:24 +0800
commit685f167e1d46a15afde902c68a1fccd9e720b407 (patch)
treeb2f9105bd58018408a1374509499018574546c65 /server/src/method/textDocument/definition.lua
parent12d025b1485ab541fa629af7545e0f2596a6d562 (diff)
downloadlua-language-server-685f167e1d46a15afde902c68a1fccd9e720b407.zip
修正bug
Diffstat (limited to 'server/src/method/textDocument/definition.lua')
-rw-r--r--server/src/method/textDocument/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/method/textDocument/definition.lua b/server/src/method/textDocument/definition.lua
index 17351318..f8aa5bf5 100644
--- a/server/src/method/textDocument/definition.lua
+++ b/server/src/method/textDocument/definition.lua
@@ -24,7 +24,7 @@ return function (lsp, params)
end
-- lua是从1开始的,因此都要+1
local position = lines:position(params.position.line + 1, params.position.character + 1)
- local result = core.findResult(vm, position, lsp)
+ local result = core.findResult(vm, position)
if not result then
return nil
end