This commit is contained in:
Benjamin Pasero
2017-12-06 07:47:53 +01:00
parent bd11a1f64e
commit ace285a4a3
+6 -3
View File
@@ -127,13 +127,16 @@ function setupIPC(accessor: ServicesAccessor): TPromise<Server> {
function setup(retry: boolean): TPromise<Server> {
return serve(environmentService.mainIPCHandle).then(server => {
if (platform.isMacintosh) {
app.dock.show(); // dock might be hidden at this case due to a retry
}
// Print --status usage info
if (environmentService.args.status) {
logService.warn('Warning: The --status argument can only be used if Code is already running. Please run it again after Code has started.');
throw new ExpectedError('Terminating...');
}
// dock might be hidden at this case due to a retry
if (platform.isMacintosh) {
app.dock.show();
}
// Set the VSCODE_PID variable here when we are sure we are the first