Skip to content

Commit a780cd0

Browse files
committed
fix(typescript): improve stability of js-debug-adapter execution path
1 parent 3dc09de commit a780cd0

File tree

1 file changed

+1
-4
lines changed
  • lua/astrocommunity/pack/typescript

1 file changed

+1
-4
lines changed

lua/astrocommunity/pack/typescript/dap.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ return {
88
type = "server",
99
host = "localhost",
1010
port = "${port}",
11-
executable = {
12-
command = "node",
13-
args = { vim.fn.expand "$MASON/packages/js-debug-adapter/js-debug/src/dapDebugServer.js", "${port}" },
14-
},
11+
executable = { command = vim.fn.exepath "js-debug-adapter", args = { "${port}" } },
1512
}
1613
end
1714
if not dap.adapters.node then

0 commit comments

Comments
 (0)