add firefox adapter and config; fix tables

This commit is contained in:
vladstojna 2023-04-27 16:54:44 +01:00 committed by vladstojna
parent ee05de7d29
commit 0f18e541c6
5 changed files with 30 additions and 4 deletions

View file

@ -4,17 +4,19 @@ local dap_utils = require("dap.utils")
local launch = {
type = "pwa-node",
request = "launch",
name = "Launch file",
name = "(pwa-node) Launch file",
program = "${file}",
cwd = "${workspaceFolder}",
}
local attach = {
type = "pwa-node",
request = "attach",
name = "Attach",
name = "(pwa-node) Attach",
processId = dap_utils.pick_process,
cwd = "${workspaceFolder}",
}
dap.configurations.javascript = { launch, attach }
dap.configurations.typescript = { launch, attach }
table.insert(dap.configurations.javascript, launch)
table.insert(dap.configurations.javascript, attach)
table.insert(dap.configurations.typescript, launch)
table.insert(dap.configurations.typescript, attach)