summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-29 11:00:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-29 15:10:48 +0800
commit85238d59c30309b8cffcd37dd5b55f7c8a85d99e (patch)
treeb0b54413fdd132b5a65be3f917e83263f090852f /script/workspace
parent7233ce63aa6a1ac7df24a9afea81065877e3965a (diff)
downloadlua-language-server-85238d59c30309b8cffcd37dd5b55f7c8a85d99e.zip
add file log
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index c493823d..cc1155e1 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -191,8 +191,9 @@ local function loadFileFactory(root, progress, isLibrary)
progress.max = progress.max + 1
pub.task('loadFile', uri, function (text)
progress.read = progress.read + 1
- --log.info(('Preload file at: %s , size = %.3f KB'):format(uri, #text / 1000.0))
+ log.info(('Preload file at: %s , size = %.3f KB'):format(uri, #text / 1000.0))
if isLibrary then
+ log.info('++++As library of:', root)
files.setLibraryPath(uri, root)
end
files.setText(uri, text)
@@ -249,10 +250,12 @@ function m.awaitPreload()
local native = m.getNativeMatcher()
local librarys = m.getLibraryMatchers()
if native then
+ log.info('Scan files at:', m.path)
native:scan(m.path, nativeLoader)
end
for _, library in ipairs(librarys) do
local libraryLoader = loadFileFactory(library.path, progress, true)
+ log.info('Scan library at:', library.path)
library.matcher:scan(library.path, libraryLoader)
end