summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-03 19:55:07 +0800
committersumneko <sumneko@hotmail.com>2019-04-03 19:55:07 +0800
commitcfcf85156ea3f74e0697421b74cd3f9fdb0f91cf (patch)
tree4478a463a2fbc38b10f34c9ceb36040a266138d5 /server/src/service.lua
parent5edda40151d5eed6605009346217d1da3bcb9ae6 (diff)
downloadlua-language-server-cfcf85156ea3f74e0697421b74cd3f9fdb0f91cf.zip
语法错误的版本
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index fdeb926d..6db71442 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -497,6 +497,10 @@ function mt:doDiagnostics(uri)
end
end
+function mt:getFile(uri)
+ return self._file[uri]
+end
+
function mt:getVM(uri)
local obj = self._file[uri]
if not obj then