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
feat(starter): provide an executable to start forge in a vscode debugger compatible way #198
Conversation
…ger compatible way Currently only on darwin and linux, win32 implemenation to come
Yay! Looks like the checks are failing though… |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a fairly interesting hack to get VSCode to work.
Perhaps add a test so that the code coverage doesn't go down?
README.md
Outdated
easy with Forge. Simply add this as a launch config in VSCode and you're | ||
good to go. | ||
|
||
```json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to change this to javascript since comments aren't a thing 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in my version
src/electron-forge-start.js
Outdated
@@ -47,6 +48,13 @@ import { start } from './api'; | |||
runAsNode: !!program.runAsNode, | |||
}; | |||
|
|||
if (program.vscode && appArgs) { | |||
appArgs = appArgs | |||
// Args are in the format ~arg~ so we need to strip the "~" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I'd put the comment one line above and not split up the statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
One of them is because of #110. |
@malept Hmmm ok, when will this be merged? |
Once the requested changes are addressed? 😄 |
Is there a way for me to make the changes? |
You could make a pull request on this pull request branch (instead of master). |
8d3f8a9
to
8164d3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be merged assuming the tests pass (modulo the intermittent failure).
NPM release? |
I should have a minute before your comment. Did it not publish correctly? |
Sorry, it’s working now 😉 |
feat: Update all dependencies (Electron 5)
Currently only on Darwin and Linux, win32 implementation to come
Summarize your changes:
Basically adds a new binary to target with VS Code that mangles the args so we can pass node debug args through node without them making the forge host process enter debugging mode. 😆