-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Add -w / --wait Command line argument #744
Copy link
Copy link
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityverifiedVerification succeededVerification succeeded
Milestone
Description
I wants to use vscode as my git-cli editor. So I need an option that the calling process get stoped until the file I want to edit is closed.
I modified the bin\code.js in this form:
delete process.env['ATOM_SHELL_INTERNAL_RUN_AS_NODE'];
require('child_process')
.spawn(require('path').resolve(__dirname, '..', 'Code.exe'), process.argv.slice(2), {
detached: true,
stdio: 'ignore'
})
.on('close', process.exit);
if (process.argv.indexOf('-w')===-1&&process.argv.indexOf('--wait')===-1) {process.exit(0);}But it only works if there are no other arguments and vscode is not already open.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityverifiedVerification succeededVerification succeeded