File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -414,8 +414,9 @@ export async function main(argv: string[]): Promise<any> {
414
414
let child : ChildProcess ;
415
415
if ( ! isMacOSBigSurOrNewer ) {
416
416
if ( ! verbose && args . status ) {
417
- options [ 'stdio' ] = ' pipe'; // restore ability to see output when --status is used
417
+ options [ 'stdio' ] = [ 'ignore' , ' pipe', 'ignore' ] ; // restore ability to see output when --status is used
418
418
}
419
+
419
420
// We spawn process.execPath directly
420
421
child = spawn ( process . execPath , argv . slice ( 2 ) , options ) ;
421
422
} else {
@@ -440,7 +441,7 @@ export async function main(argv: string[]): Promise<any> {
440
441
// The open command only allows for redirecting stderr and stdout to files,
441
442
// so we make it redirect those to temp files, and then use a logger to
442
443
// redirect the file output to the console
443
- for ( const outputType of [ 'stdout' , 'stderr' ] ) {
444
+ for ( const outputType of verbose ? [ 'stdout' , 'stderr' ] : [ 'stdout '] ) {
444
445
445
446
// Tmp file to target output to
446
447
const tmpName = randomPath ( tmpdir ( ) , `code-${ outputType } ` ) ;
You can’t perform that action at this time.
0 commit comments