Skip to content

Commit 5cbf207

Browse files
committed
fix debugger
1 parent 14f49b6 commit 5cbf207

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lua/neotest-vstest/strategies/vstest_debugger.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ return function(dap_config)
2424
)
2525

2626
local client = vim.tbl_keys(spec.context.client_id_map)[1]
27-
local ids = spec.context.projects_id_map[client]
27+
local ids = spec.context.client_id_map[client]
2828

2929
if spec.context.solution then
3030
dotnet_utils.build_path(spec.context.solution)
@@ -55,9 +55,6 @@ return function(dap_config)
5555
local finish_future = nio.control.future()
5656
local result_code
5757

58-
local client = discovery.get_client_for_project(project)
59-
assert(client, "failed to get client for project")
60-
6158
local run_result = client:debug_tests(ids)
6259

6360
nio.run(function()
@@ -80,6 +77,8 @@ return function(dap_config)
8077
end
8178
end)
8279

80+
logger.debug("neotest-vstest: starting debug session: " .. vim.inspect(run_result.pid))
81+
8382
nio.scheduler()
8483
dap.run(
8584
vim.tbl_extend(

0 commit comments

Comments
 (0)