summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-20 17:30:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-20 17:30:44 +0800
commitfe7fcceba31069c08121c6a41cad6a9db5c05d07 (patch)
tree2e3bcab7e396321567ac8fbb9cd807a5a8d06e87 /server/src
parent64e1114725a8956ac9f280b923fc8eacb0f07265 (diff)
downloadlua-language-server-fe7fcceba31069c08121c6a41cad6a9db5c05d07.zip
漏了
Diffstat (limited to 'server/src')
-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