feat: add command to load launch.json config for debugging

main
Ian Mancini 2 years ago
parent 52a60ebfd9
commit 26de444472

@ -85,6 +85,15 @@ wk.register({
"Step into",
},
p = {
function()
require("dap.ext.vscode").load_launchjs(
nil,
{ ["pwa-node"] = { "typescriptreact", "typescript", "javascript", "javascriptreact", "json" } }
)
end,
"Load project config",
},
P = {
function()
local config_dir = vim.loop.cwd() .. "/.vscode"
local config_file = config_dir .. "/launch.json"

Loading…
Cancel
Save