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 {
313313 throw error ;
314314 }
315315
316+ // Since we are the second instance, we do not want to show the dock
317+ if ( isMacintosh ) {
318+ app . dock ?. hide ( ) ;
319+ }
320+
316321 // there's a running instance, let's connect to it
317322 let client : NodeIPCClient < string > ;
318323 try {
@@ -412,6 +417,11 @@ class CodeMain {
412417 throw new ExpectedError ( 'Terminating...' ) ;
413418 }
414419
420+ // dock might be hidden at this case due to a retry
421+ if ( isMacintosh ) {
422+ app . dock ?. show ( ) ;
423+ }
424+
415425 // Set the VSCODE_PID variable here when we are sure we are the first
416426 // instance to startup. Otherwise we would wrongly overwrite the PID
417427 process . env [ 'VSCODE_PID' ] = String ( process . pid ) ;
You can’t perform that action at this time.
0 commit comments