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 -- @type DapAdapter
dap.adapters.coreclr = { dap.adapters.netcoredbg = {
type = "executable", type = "executable",
command = "netcoredbg", command = "netcoredbg",
args = { "--interpreter=vscode" }, args = { "--interpreter=vscode" },
@ -162,13 +162,23 @@ dap.configurations.c = dap.configurations.cpp
-- @type DapConfiguration -- @type DapConfiguration
dap.configurations.cs = { dap.configurations.cs = {
{ {
type = "coreclr", type = "netcoredbg",
name = "launch - netcoredbg", name = "Launch DLL",
request = "launch", request = "launch",
program = function() program = function()
return vim.fn.input("Path to dll", vim.fn.getcwd() .. "/bin/Debug/", "file") return vim.fn.input("Path to dll", vim.fn.getcwd() .. "/bin/Debug/", "file")
end, 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 -- @type DapConfiguration