Skip to content

Commit c2b13cf

Browse files
committed
add error handling for missing client
1 parent 6b57329 commit c2b13cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lua/neotest-vstest/init.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,15 @@ local function create_adapter(config)
517517
if client then
518518
local tests = projects[client] or {}
519519
projects[client] = vim.list_extend(tests, { position.id })
520+
else
521+
vim.notify_once(
522+
string.format(
523+
"neotest-vstest: could not find adapter client for test '%s' in project '%s'",
524+
position.name,
525+
vim.inspect(position.project)
526+
),
527+
vim.log.levels.WARN
528+
)
520529
end
521530
end
522531
end

0 commit comments

Comments
 (0)