From 9a7a4b3f2ad614b150e6d24afb9d722c8456bd7b Mon Sep 17 00:00:00 2001 From: dqnk <64268180+dqnk@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:58:31 +0200 Subject: [PATCH] fix: DAP for Typescript --- lua/lazyvim/plugins/extras/lang/typescript.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/typescript.lua b/lua/lazyvim/plugins/extras/lang/typescript.lua index f7cc3231..d0ac77f8 100644 --- a/lua/lazyvim/plugins/extras/lang/typescript.lua +++ b/lua/lazyvim/plugins/extras/lang/typescript.lua @@ -247,6 +247,10 @@ return { name = "Launch file", program = "${file}", cwd = "${workspaceFolder}", + sourceMaps = true, + resolveSourceMapLocations = { "${workspaceFolder}/buid/**/*.js" }, + skipFiles = { "/**", "node_modules/**" }, + runtimeExecutable = "ts-node", }, { type = "pwa-node", @@ -254,6 +258,10 @@ return { name = "Attach", processId = require("dap.utils").pick_process, cwd = "${workspaceFolder}", + sourceMaps = true, + resolveSourceMapLocations = { "${workspaceFolder}/buid/**/*.js" }, + skipFiles = { "/**", "node_modules/**" }, + runtimeExecutable = "ts-node", }, } end