summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua8
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