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", "Step into",
}, },
p = { p = {
function()
require("dap.ext.vscode").load_launchjs(
nil,
{ ["pwa-node"] = { "typescriptreact", "typescript", "javascript", "javascriptreact", "json" } }
)
end,
"Load project config",
},
P = {
function() function()
local config_dir = vim.loop.cwd() .. "/.vscode" local config_dir = vim.loop.cwd() .. "/.vscode"
local config_file = config_dir .. "/launch.json" local config_file = config_dir .. "/launch.json"

Loading…
Cancel
Save