fix: resolve js debugger relative to mason install location
This commit is contained in:
@@ -92,13 +92,15 @@ return {
|
||||
},
|
||||
})
|
||||
|
||||
local jsDebugPath = vim.fn.stdpath("data") .. "/mason/packages/js-debug-adapter/js-debug/src/dapDebugServer.js"
|
||||
|
||||
dap.adapters["pwa-node"] = {
|
||||
type = "server",
|
||||
host = "localhost",
|
||||
port = "${port}",
|
||||
executable = {
|
||||
command = "node",
|
||||
args = { "C:/Users/sfree/AppData/Local/nvim-data/vscode-js-debug/src/dapDebugServer.js", "${port}" },
|
||||
args = { jsDebugPath, "${port}" },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -121,16 +123,6 @@ return {
|
||||
}
|
||||
end
|
||||
|
||||
dap.configurations.javascript = {
|
||||
{
|
||||
type = "pwa-node",
|
||||
request = "launch",
|
||||
name = "Launch file",
|
||||
program = "${file}",
|
||||
cwd = "${workspaceFolder}",
|
||||
},
|
||||
}
|
||||
|
||||
dap.adapters.coreclr = {
|
||||
type = "executable",
|
||||
command = "C:/Users/sfree/AppData/Local/nvim-data/mason/packages/netcoredbg/netcoredbg/netcoredbg.exe",
|
||||
|
||||
Reference in New Issue
Block a user