From 71d24c50b9b44dbd1b14958e7941fb7c9a1ab11c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 21 Jan 2019 17:01:12 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/service.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/src/service.lua') diff --git a/server/src/service.lua b/server/src/service.lua index 4174c54c..01c28f97 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -301,6 +301,14 @@ function mt:getVM(uri) return obj.vm, obj.lines, obj.text end +function mt:getText(uri) + local obj = self._file[uri] + if not obj then + return nil + end + return obj.text +end + function mt:getAstErrors(uri) local obj = self._file[uri] if not obj then -- cgit v1.2.3