Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Feb 3, 2023
1 parent 1553eb4 commit 5f5295e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/library.lua
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ local function check3rdByWords(uri, configs)
for _, word in ipairs(cfg.words) do
await.delay()
if wholeMatch(text, word) then
log.info('Found 3rd library by word: ', word, uri, library, inspect(config.get(uri, 'Lua.workspace.library')))
---@async
await.call(function ()
askFor3rd(uri, cfg)
Expand Down Expand Up @@ -578,6 +579,7 @@ local function check3rdByFileName(uri, configs)
for _, filename in ipairs(cfg.files) do
await.delay()
if wholeMatch(path, filename) then
log.info('Found 3rd library by filename: ', filename, uri, library, inspect(config.get(uri, 'Lua.workspace.library')))
---@async
await.call(function ()
askFor3rd(uri, cfg)
Expand Down

0 comments on commit 5f5295e

Please sign in to comment.