diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-22 16:34:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-22 16:34:59 +0800 |
commit | 5df9959be4a51ab567743b72753f15a24b8f7ef6 (patch) | |
tree | 238a4e2563425453231edbd2348ceda2233c7167 /server/src/service.lua | |
parent | d40edfa5955d4901c971c1ec53248afbaf0cc6e8 (diff) | |
download | lua-language-server-5df9959be4a51ab567743b72753f15a24b8f7ef6.zip |
把所有文件都加载进来
Diffstat (limited to 'server/src/service.lua')
-rw-r--r-- | server/src/service.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index cd1572e9..37cb048e 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -156,6 +156,7 @@ function mt:readText(uri, path) end local text = io.load(path) if not text then + log.debug('无法找到文件:', path) return end self._file[uri] = { @@ -175,9 +176,12 @@ end function mt:reCompile() local compiled = {} + local n = 0 for uri in pairs(self._file) do self:needCompile(uri, compiled) + n = n + 1 end + log.debug('reCompile:', n) if self._needShowComplete then self._needShowComplete = nil |