File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/vs/code/electron-main Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,11 @@ class CodeMain {
313
313
throw error ;
314
314
}
315
315
316
+ // Since we are the second instance, we do not want to show the dock
317
+ if ( isMacintosh ) {
318
+ app . dock ?. hide ( ) ;
319
+ }
320
+
316
321
// there's a running instance, let's connect to it
317
322
let client : NodeIPCClient < string > ;
318
323
try {
@@ -412,6 +417,11 @@ class CodeMain {
412
417
throw new ExpectedError ( 'Terminating...' ) ;
413
418
}
414
419
420
+ // dock might be hidden at this case due to a retry
421
+ if ( isMacintosh ) {
422
+ app . dock ?. show ( ) ;
423
+ }
424
+
415
425
// Set the VSCODE_PID variable here when we are sure we are the first
416
426
// instance to startup. Otherwise we would wrongly overwrite the PID
417
427
process . env [ 'VSCODE_PID' ] = String ( process . pid ) ;
You can’t perform that action at this time.
0 commit comments