This commit is contained in:
Joao Moreno
2016-09-30 09:36:07 +02:00
parent 07297bdab3
commit fc21ef35bb
+2
View File
@@ -12,6 +12,7 @@ import { TPromise } from 'vs/base/common/winjs.base';
import { IChannel } from 'vs/base/parts/ipc/common/ipc';
import { ILogService } from 'vs/code/electron-main/log';
import { IURLService } from 'vs/platform/url/common/url';
import { app } from 'electron';
export interface IStartArguments {
args: ICommandLineArguments;
@@ -64,6 +65,7 @@ export class LaunchService implements ILaunchService {
const openUrl = typeof openUrlArg === 'string' ? [openUrlArg] : openUrlArg;
if (openUrl.length > 0) {
app.focus();
openUrl.forEach(url => this.urlService.open(url));
return TPromise.as(null);
}