mxsdev / nvim-dap-vscode-js

nvim-dap adapter for vscode-js-debug
276 stars 30 forks source link

Feature request: setting default value for `launch.json` configuration value #28

Open mawkler opened 1 year ago

mawkler commented 1 year ago

Thanks for a great plugin! I spent some time trying to figure out why a launch.json file wasn't working properly when my very similar hard-coded dap configuration in my Lua config worked. Turns out that the launch.json files that my team at work use don't have "cwd": "${workspaceFolder}" in them, but my hard-coded config configuration did.

I feel like "${workspaceFolder}" is a reasonable default value to have for "cwd", so I'm wondering now what the default is. It feels odd to have to add this to every config in every launch.json that we use so I think it would be a great feature if nvim-dap-vscode-js let me specify the default value to use for "cwd" in this case if it isn't specified in the launch.json file.

What do you think?