From 4b3d9412560935d11e63487d6be7d3bfb8b11b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 22 Oct 2019 15:40:02 +0800 Subject: =?UTF-8?q?=E6=89=93=E5=BC=80=E8=B7=A8=E6=96=87=E4=BB=B6def?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/proto/provider.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server-beta/src/proto') 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 -- cgit v1.2.3