Skip to content

Commit 5f5295e

Browse files
committed
add more logs
#1859
1 parent 1553eb4 commit 5f5295e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

script/library.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ local function check3rdByWords(uri, configs)
543543
for _, word in ipairs(cfg.words) do
544544
await.delay()
545545
if wholeMatch(text, word) then
546+
log.info('Found 3rd library by word: ', word, uri, library, inspect(config.get(uri, 'Lua.workspace.library')))
546547
---@async
547548
await.call(function ()
548549
askFor3rd(uri, cfg)
@@ -578,6 +579,7 @@ local function check3rdByFileName(uri, configs)
578579
for _, filename in ipairs(cfg.files) do
579580
await.delay()
580581
if wholeMatch(path, filename) then
582+
log.info('Found 3rd library by filename: ', filename, uri, library, inspect(config.get(uri, 'Lua.workspace.library')))
581583
---@async
582584
await.call(function ()
583585
askFor3rd(uri, cfg)

0 commit comments

Comments
 (0)