fix: remove pyhon path from dap
This commit is contained in:
@@ -47,17 +47,17 @@ function M.parse_positions(file_path)
|
||||
return lib.treesitter.parse_positions(file_path, query)
|
||||
end
|
||||
|
||||
function M.get_strategy_config(strategy, python, python_script, args)
|
||||
function M.get_strategy_config(strategy, python_script, args)
|
||||
local config = {
|
||||
dap = function()
|
||||
return {
|
||||
type = "python",
|
||||
name = "Neotest Debugger",
|
||||
request = "launch",
|
||||
python = python,
|
||||
program = python_script,
|
||||
cwd = vim.fn.getcwd(),
|
||||
args = args,
|
||||
justMyCode= false,
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
@@ -84,7 +84,7 @@ function PythonNeotestAdapter.build_spec(args)
|
||||
context = {
|
||||
results_path = results_path,
|
||||
},
|
||||
strategy = base.get_strategy_config(args.strategy, python, python_script, script_args),
|
||||
strategy = base.get_strategy_config(args.strategy, python_script, script_args),
|
||||
}
|
||||
end
|
||||
|
||||
@@ -125,3 +125,4 @@ setmetatable(PythonNeotestAdapter, {
|
||||
})
|
||||
|
||||
return PythonNeotestAdapter
|
||||
|
||||
|
Reference in New Issue
Block a user