Skip to content

Commit 0ae779f

Browse files
committed
fix: fallback in solution discovery
1 parent 0d7d072 commit 0ae779f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neotest-vstest/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ local function create_adapter(config)
4242

4343
local solutions = vim.fs.find(function(name, _)
4444
return name:match("%.slnx?$")
45-
end, { upward = false, type = "file", path = first_solution, limit = math.huge })
45+
end, { upward = false, type = "file", path = first_solution or path, limit = math.huge })
4646

4747
logger.info(string.format("neotest-vstest: scanning %s for solution file...", first_solution))
4848
logger.info(solutions)

0 commit comments

Comments
 (0)