diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 17:01:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 17:01:12 +0800 |
commit | 71d24c50b9b44dbd1b14958e7941fb7c9a1ab11c (patch) | |
tree | e15c1d3662f799cfe7c47211f21f6f7142a9068c /server/src/service.lua | |
parent | 3573568a50627ccf1b87ec5ebce585b4207b1826 (diff) | |
download | lua-language-server-71d24c50b9b44dbd1b14958e7941fb7c9a1ab11c.zip |
修正bug
Diffstat (limited to 'server/src/service.lua')
-rw-r--r-- | server/src/service.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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 |