-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds support for the node
adapter
#13
base: main
Are you sure you want to change the base?
Conversation
@mxsdev can you look at this? |
Hi! Thank you so much for the pr and for being open to change requests :) If I understand correctly, this is in reference to microsoft/vscode-js-debug#1305? If so, I believe those changes apply only at the external configuration level (think VSCode's Correct me if I am wrong, but I think that your tests still use the old Basically, there is an extra step between a client like VSCode and the internal debugger, which replaces Since there is the possibility of
Then if down the road Let me know how you feel about this approach. You say you're not super familiar with lua so I'm happy to implement it myself, just let me know 👍 |
Hello! Thanks @mxsdev for looking into this.
For this to work, after adding the
I'm not sure if I'm missing something or this could be done in a better way, but i'd be nice if we were able tu use just |
@dieguit You can do it like this local ok, filetypes = pcall(require, 'mason-nvim-dap.mappings.filetypes')
require("dap.ext.vscode").load_launchjs(nil, ok and filetypes or nil) |
@eastwood Is there any progress on this ? I don't want to do duplicate efforts but if this PR is abandoned, I'll prefer to work on another PR |
Hi @mxsdev , I'm thinking of completing this PR and need one clarification on the suggestions you've given.
Is it correct or otherwise ? I think logical is to alias the pwa-* equivalents to node, chrome, msedge and extensionHost equivalents. i.e. If user provides "pwa-node", it should be mapped to "node" and used so. |
As of July 2022, the
pwa-node
adapter became the default node adapter and is now available under thenode
type by default.In this PR, I've updated the config filter to support the launch configuration containing the
node
type. I've left the existingpwa-node
type for backwards compatibility until such time that thepwa-node
adapter will become officially deprecated.Essentially, this is a name change - so I've copied the tests across to make sure that we can catch any funny business if the two adapter diverge.
I'm very new to lua, so have used your workflow to run test cases, and change requests are encouraged and welcome :)