fix(neovim): rename coreclr dap to netcoredbg

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-02-11 23:36:46 -03:00
parent 48599d2766
commit cfd84bde6a
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -104,7 +104,7 @@ dap.adapters.cppdbg = {
}
-- @type DapAdapter
dap.adapters.coreclr = {
dap.adapters.netcoredbg = {
type = "executable",
command = "netcoredbg",
args = { "--interpreter=vscode" },
@ -162,13 +162,23 @@ dap.configurations.c = dap.configurations.cpp
-- @type DapConfiguration
dap.configurations.cs = {
{
type = "coreclr",
name = "launch - netcoredbg",
type = "netcoredbg",
name = "Launch DLL",
request = "launch",
program = function()
return vim.fn.input("Path to dll", vim.fn.getcwd() .. "/bin/Debug/", "file")
end,
},
{
type = "netcoredbg",
name = "Attach to debugger",
request = "attach",
program = function()
return vim.fn.input("Path to dll", vim.fn.getcwd() .. "/bin/Debug/", "file")
end,
pid = "${command:pickProcess}",
cwd = "${workspaceFolder}",
},
}
-- @type DapConfiguration