summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 b48c379f..912917ae 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -201,6 +201,10 @@ function mt:close(uri)
self._opening[uri] = nil
end
+function mt:isOpen(uri)
+ return self._opening[uri] == true
+end
+
function mt:reCompile()
for uri in pairs(self._opening) do
self._needCompile[uri] = true