diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-22 15:40:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-22 15:40:02 +0800 |
commit | 4b3d9412560935d11e63487d6be7d3bfb8b11b91 (patch) | |
tree | 408ffe09d74bd48912f5ede6b5cb8837d37f7ea5 /server-beta/src/proto | |
parent | 917d721acdf86ff69728fae89662019c519ea561 (diff) | |
download | lua-language-server-4b3d9412560935d11e63487d6be7d3bfb8b11b91.zip |
打开跨文件def测试
Diffstat (limited to 'server-beta/src/proto')
-rw-r--r-- | server-beta/src/proto/provider.lua | 2 |
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 |