提交 fc21ef35 编写于 作者: J Joao Moreno

fixes #13054

上级 07297bda
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册