mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix: DAP for Typescript
This commit is contained in:
parent
25abbf546d
commit
9a7a4b3f2a
1 changed files with 8 additions and 0 deletions
|
|
@ -247,6 +247,10 @@ return {
|
||||||
name = "Launch file",
|
name = "Launch file",
|
||||||
program = "${file}",
|
program = "${file}",
|
||||||
cwd = "${workspaceFolder}",
|
cwd = "${workspaceFolder}",
|
||||||
|
sourceMaps = true,
|
||||||
|
resolveSourceMapLocations = { "${workspaceFolder}/buid/**/*.js" },
|
||||||
|
skipFiles = { "<node_internals>/**", "node_modules/**" },
|
||||||
|
runtimeExecutable = "ts-node",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "pwa-node",
|
type = "pwa-node",
|
||||||
|
|
@ -254,6 +258,10 @@ return {
|
||||||
name = "Attach",
|
name = "Attach",
|
||||||
processId = require("dap.utils").pick_process,
|
processId = require("dap.utils").pick_process,
|
||||||
cwd = "${workspaceFolder}",
|
cwd = "${workspaceFolder}",
|
||||||
|
sourceMaps = true,
|
||||||
|
resolveSourceMapLocations = { "${workspaceFolder}/buid/**/*.js" },
|
||||||
|
skipFiles = { "<node_internals>/**", "node_modules/**" },
|
||||||
|
runtimeExecutable = "ts-node",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue