summaryrefslogtreecommitdiff
path: root/server-beta/src/proto
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-22 15:40:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-22 15:40:02 +0800
commit4b3d9412560935d11e63487d6be7d3bfb8b11b91 (patch)
tree408ffe09d74bd48912f5ede6b5cb8837d37f7ea5 /server-beta/src/proto
parent917d721acdf86ff69728fae89662019c519ea561 (diff)
downloadlua-language-server-4b3d9412560935d11e63487d6be7d3bfb8b11b91.zip
打开跨文件def测试
Diffstat (limited to 'server-beta/src/proto')
-rw-r--r--server-beta/src/proto/provider.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-beta/src/proto/provider.lua b/server-beta/src/proto/provider.lua
index 0c029a45..9ad5147a 100644
--- a/server-beta/src/proto/provider.lua
+++ b/server-beta/src/proto/provider.lua
@@ -157,7 +157,7 @@ proto.on('textDocument/definition', function (params)
local lines = files.getLines(uri)
local text = files.getText(uri)
local offset = inte.offset(lines, text, params.position)
- local result = core(ast, text, offset)
+ local result = core(ast, offset)
if not result then
return nil
end