mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-24 08:15:51 +01:00
fixes #13054
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user