Skip to content

Add -w / --wait Command line argument #744

@Lichtjaeger

Description

@Lichtjaeger

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.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions