summaryrefslogtreecommitdiff
path: root/server/src/workspace.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-26 13:14:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-26 13:14:44 +0800
commit097e9c06c9a78d3ae845a7eec694a2dbe99161b0 (patch)
treed25835e3e6d7ddd79fff66bd011a8f3e6af230f9 /server/src/workspace.lua
parent2304c9722132da29ff98c01de18db7daef5e8aac (diff)
downloadlua-language-server-097e9c06c9a78d3ae845a7eec694a2dbe99161b0.zip
整理一下代码
Diffstat (limited to 'server/src/workspace.lua')
-rw-r--r--server/src/workspace.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/workspace.lua b/server/src/workspace.lua
index ba324aad..9e9c03d2 100644
--- a/server/src/workspace.lua
+++ b/server/src/workspace.lua
@@ -97,9 +97,14 @@ function mt:init(rootUri)
self.files[name] = self:uriEncode(path)
end
self:reset()
+ self._complete = true
end)
end
+function mt:isComplete()
+ return not not self._complete
+end
+
function mt:addFile(uri)
if uri:sub(-4) == '.lua' then
local name = self:uriDecode(uri):string():lower()