extensionsActions.ts 17.9 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4 5
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

J
Joao Moreno 已提交
6
import 'vs/css!./media/extensionActions';
J
Joao Moreno 已提交
7
import { localize } from 'vs/nls';
J
Joao Moreno 已提交
8
import { TPromise } from 'vs/base/common/winjs.base';
E
Erich Gamma 已提交
9
import { Action } from 'vs/base/common/actions';
10
import severity from 'vs/base/common/severity';
11
import paths = require('vs/base/common/paths');
J
Joao Moreno 已提交
12
import Event from 'vs/base/common/event';
J
Joao Moreno 已提交
13
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
J
Joao Moreno 已提交
14
import { ReloadWindowAction } from 'vs/workbench/electron-browser/actions';
15
import { IExtension, ExtensionState, IExtensionsWorkbenchService, VIEWLET_ID, IExtensionsViewlet } from './extensions';
16
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
17
import { IMessageService, LaterAction } from 'vs/platform/message/common/message';
18
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
19 20 21
import { ToggleViewletAction } from 'vs/workbench/browser/viewlet';
import { IViewletService } from 'vs/workbench/services/viewlet/common/viewletService';
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
J
Joao Moreno 已提交
22
import { Query } from '../common/extensionQuery';
J
Joao Moreno 已提交
23 24 25
import { shell, remote } from 'electron';

const dialog = remote.dialog;
J
Joao Moreno 已提交
26

27 28
export class InstallAction extends Action {

J
Joao Moreno 已提交
29 30
	private static InstallLabel = localize('installAction', "Install");
	private static InstallingLabel = localize('installing', "Installing");
J
Joao Moreno 已提交
31
	private disposables: IDisposable[] = [];
J
Joao Moreno 已提交
32 33 34
	private _extension: IExtension;
	get extension(): IExtension { return this._extension; }
	set extension(extension: IExtension) { this._extension = extension; this.update(); }
35

36 37 38
	constructor(
		@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService
	) {
J
Joao Moreno 已提交
39
		super('extensions.install', InstallAction.InstallLabel, 'extension-action install', false);
40

41
		this.disposables.push(this.extensionsWorkbenchService.onChange(() => this.update()));
J
Joao Moreno 已提交
42
		this.update();
43 44
	}

J
Joao Moreno 已提交
45
	private update(): void {
J
Joao Moreno 已提交
46 47 48 49 50 51
		if (!this.extension) {
			this.enabled = false;
			this.label = InstallAction.InstallLabel;
			return;
		}

52
		this.enabled = this.extensionsWorkbenchService.canInstall(this.extension) && this.extension.state === ExtensionState.Uninstalled;
J
Joao Moreno 已提交
53
		this.label = this.extension.state === ExtensionState.Installing ? InstallAction.InstallingLabel : InstallAction.InstallLabel;
54 55
	}

J
Joao Moreno 已提交
56
	run(): TPromise<any> {
57
		return this.extensionsWorkbenchService.install(this.extension);
58 59
	}

J
Joao Moreno 已提交
60 61 62
	dispose(): void {
		super.dispose();
		this.disposables = dispose(this.disposables);
63 64
	}
}
J
Joao Moreno 已提交
65

J
Joao Moreno 已提交
66
export class UninstallAction extends Action {
J
Joao Moreno 已提交
67

J
Joao Moreno 已提交
68
	private disposables: IDisposable[] = [];
J
Joao Moreno 已提交
69 70 71
	private _extension: IExtension;
	get extension(): IExtension { return this._extension; }
	set extension(extension: IExtension) { this._extension = extension; this.update(); }
J
Joao Moreno 已提交
72

73
	constructor(
74 75 76
		@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService,
		@IMessageService private messageService: IMessageService,
		@IInstantiationService private instantiationService: IInstantiationService
77
	) {
J
Joao Moreno 已提交
78
		super('extensions.uninstall', localize('uninstall', "Uninstall"), 'extension-action uninstall', false);
J
Joao Moreno 已提交
79

J
Joao Moreno 已提交
80 81
		this.disposables.push(this.extensionsWorkbenchService.onChange(() => this.update()));
		this.update();
J
Joao Moreno 已提交
82
	}
J
Joao Moreno 已提交
83

J
Joao Moreno 已提交
84 85 86 87 88 89
	private update(): void {
		if (!this.extension) {
			this.enabled = false;
			return;
		}

J
Joao Moreno 已提交
90 91
		this.enabled = this.extension.state === ExtensionState.Installed
			|| this.extension.state === ExtensionState.NeedsRestart;
J
Joao Moreno 已提交
92
	}
J
Joao Moreno 已提交
93

J
Joao Moreno 已提交
94
	run(): TPromise<any> {
J
Joao Moreno 已提交
95
		if (!window.confirm(localize('deleteSure', "Are you sure you want to uninstall '{0}'?", this.extension.displayName))) {
J
Joao Moreno 已提交
96 97
			return TPromise.as(null);
		}
J
Joao Moreno 已提交
98

99 100 101
		return this.extensionsWorkbenchService.uninstall(this.extension).then(() => {
			this.messageService.show(severity.Info, {
				message: localize('postUninstallMessage', "{0} was successfully uninstalled. Restart to deactivate it.", this.extension.displayName),
102
				actions: [this.instantiationService.createInstance(ReloadWindowAction, ReloadWindowAction.ID, localize('restartNow', "Restart Now")), LaterAction]
103 104
			});
		});
J
Joao Moreno 已提交
105
	}
J
Joao Moreno 已提交
106

J
Joao Moreno 已提交
107 108 109 110 111
	dispose(): void {
		super.dispose();
		this.disposables = dispose(this.disposables);
	}
}
J
Joao Moreno 已提交
112 113 114

export class CombinedInstallAction extends Action {

J
Joao Moreno 已提交
115
	private static NoExtensionClass = 'extension-action install no-extension';
J
Joao Moreno 已提交
116 117 118
	private installAction: InstallAction;
	private uninstallAction: UninstallAction;
	private disposables: IDisposable[] = [];
J
Joao Moreno 已提交
119 120 121 122 123 124 125
	private _extension: IExtension;
	get extension(): IExtension { return this._extension; }
	set extension(extension: IExtension) {
		this._extension = extension;
		this.installAction.extension = extension;
		this.uninstallAction.extension = extension;
	}
J
Joao Moreno 已提交
126

127 128 129
	constructor(
		@IInstantiationService instantiationService: IInstantiationService
	) {
J
Joao Moreno 已提交
130 131
		super('extensions.combinedInstall', '', '', false);

J
Joao Moreno 已提交
132 133
		this.installAction = instantiationService.createInstance(InstallAction);
		this.uninstallAction = instantiationService.createInstance(UninstallAction);
J
Joao Moreno 已提交
134 135
		this.disposables.push(this.installAction, this.uninstallAction);

136
		this.installAction.onDidChange(this.update, this, this.disposables);
137
		this.uninstallAction.onDidChange(this.update, this, this.disposables);
J
Joao Moreno 已提交
138 139 140 141
		this.update();
	}

	private update(): void {
J
Joao Moreno 已提交
142 143 144 145
		if (!this.extension) {
			this.enabled = false;
			this.class = CombinedInstallAction.NoExtensionClass;
		} else if (this.installAction.enabled) {
J
Joao Moreno 已提交
146 147 148 149 150 151 152
			this.enabled = true;
			this.label = this.installAction.label;
			this.class = this.installAction.class;
		} else if (this.uninstallAction.enabled) {
			this.enabled = true;
			this.label = this.uninstallAction.label;
			this.class = this.uninstallAction.class;
J
Joao Moreno 已提交
153 154 155 156
		} else if (this.extension.state === ExtensionState.Installing) {
			this.enabled = false;
			this.label = this.installAction.label;
			this.class = this.installAction.class;
J
Joao Moreno 已提交
157 158
		} else {
			this.enabled = false;
J
Joao Moreno 已提交
159 160
			this.label = this.installAction.label;
			this.class = this.installAction.class;
J
Joao Moreno 已提交
161 162 163 164 165 166 167 168 169 170 171 172 173
		}
	}

	run(): TPromise<any> {
		if (this.installAction.enabled) {
			return this.installAction.run();
		} else if (this.uninstallAction.enabled) {
			return this.uninstallAction.run();
		}

		return TPromise.as(null);
	}

J
Joao Moreno 已提交
174 175 176 177 178 179 180 181
	dispose(): void {
		super.dispose();
		this.disposables = dispose(this.disposables);
	}
}

export class UpdateAction extends Action {

J
Joao Moreno 已提交
182
	private static EnabledClass = 'extension-action update';
J
Joao Moreno 已提交
183 184 185
	private static DisabledClass = `${ UpdateAction.EnabledClass } disabled`;

	private disposables: IDisposable[] = [];
J
Joao Moreno 已提交
186 187 188
	private _extension: IExtension;
	get extension(): IExtension { return this._extension; }
	set extension(extension: IExtension) { this._extension = extension; this.update(); }
J
Joao Moreno 已提交
189

190 191 192
	constructor(
		@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService
	) {
J
Joao Moreno 已提交
193
		super('extensions.update', localize('updateAction', "Update"), UpdateAction.DisabledClass, false);
J
Joao Moreno 已提交
194

J
Joao Moreno 已提交
195 196
		this.disposables.push(this.extensionsWorkbenchService.onChange(() => this.update()));
		this.update();
J
Joao Moreno 已提交
197 198
	}

J
Joao Moreno 已提交
199 200 201 202 203 204 205
	private update(): void {
		if (!this.extension) {
			this.enabled = false;
			this.class = UpdateAction.DisabledClass;
			return;
		}

206
		const canInstall = this.extensionsWorkbenchService.canInstall(this.extension);
J
Joao Moreno 已提交
207 208
		const isInstalled = this.extension.state === ExtensionState.Installed
			|| this.extension.state === ExtensionState.NeedsRestart;
J
Joao Moreno 已提交
209

J
Joao Moreno 已提交
210
		this.enabled = canInstall && isInstalled && this.extension.outdated;
J
Joao Moreno 已提交
211 212 213 214
		this.class = this.enabled ? UpdateAction.EnabledClass : UpdateAction.DisabledClass;
	}

	run(): TPromise<any> {
215
		return this.extensionsWorkbenchService.install(this.extension);
J
Joao Moreno 已提交
216 217
	}

J
Joao Moreno 已提交
218 219 220 221 222 223 224 225 226 227 228 229
	dispose(): void {
		super.dispose();
		this.disposables = dispose(this.disposables);
	}
}

export class EnableAction extends Action {

	private static EnabledClass = 'extension-action enable';
	private static DisabledClass = `${ EnableAction.EnabledClass } disabled`;

	private disposables: IDisposable[] = [];
J
Joao Moreno 已提交
230 231 232
	private _extension: IExtension;
	get extension(): IExtension { return this._extension; }
	set extension(extension: IExtension) { this._extension = extension; this.update(); }
J
Joao Moreno 已提交
233 234 235 236 237 238 239

	constructor(
		@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService,
		@IInstantiationService private instantiationService: IInstantiationService
	) {
		super('extensions.enable', localize('enableAction', "Enable"), EnableAction.DisabledClass, false);

J
Joao Moreno 已提交
240 241
		this.disposables.push(this.extensionsWorkbenchService.onChange(() => this.update()));
		this.update();
J
Joao Moreno 已提交
242 243
	}

J
Joao Moreno 已提交
244 245 246 247 248 249 250
	private update(): void {
		if (!this.extension) {
			this.enabled = false;
			this.class = EnableAction.DisabledClass;
			return;
		}

J
Joao Moreno 已提交
251 252 253 254 255 256 257 258 259 260 261 262 263
		this.enabled = this.extension.state === ExtensionState.NeedsRestart;
		this.class = this.enabled ? EnableAction.EnabledClass : EnableAction.DisabledClass;
	}

	run(): TPromise<any> {
		if (!window.confirm(localize('restart', "In order to enable this extension, this window of VS Code needs to be restarted.\n\nDo you want to continue?"))) {
			return TPromise.as(null);
		}

		const action = this.instantiationService.createInstance(ReloadWindowAction, ReloadWindowAction.ID, localize('restartNow', "Restart Now"));
		return action.run();
	}

J
Joao Moreno 已提交
264 265 266 267
	dispose(): void {
		super.dispose();
		this.disposables = dispose(this.disposables);
	}
268
}
J
Joao Moreno 已提交
269 270 271

export class UpdateAllAction extends Action {

272 273 274
	static ID = 'extensions.update-all';
	static LABEL = localize('updateAll', "Update All Extensions");

J
Joao Moreno 已提交
275 276 277
	private disposables: IDisposable[] = [];

	constructor(
278 279
		id = UpdateAllAction.ID,
		label = UpdateAllAction.LABEL,
J
Joao Moreno 已提交
280 281
		@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService
	) {
282
		super(id, label, '', false);
J
Joao Moreno 已提交
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307

		this.disposables.push(this.extensionsWorkbenchService.onChange(() => this.update()));
		this.update();
	}

	private get outdated(): IExtension[] {
		return this.extensionsWorkbenchService.local
			.filter(e => this.extensionsWorkbenchService.canInstall(e)
				&& (e.state === ExtensionState.Installed || e.state === ExtensionState.NeedsRestart)
				&& e.outdated);
	}

	private update(): void {
		this.enabled = this.outdated.length > 0;
	}

	run(): TPromise<any> {
		return TPromise.join(this.outdated.map(e => this.extensionsWorkbenchService.install(e)));
	}

	dispose(): void {
		super.dispose();
		this.disposables = dispose(this.disposables);
	}
}
308 309 310

export class OpenExtensionsViewletAction extends ToggleViewletAction {

J
Joao Moreno 已提交
311
	static ID = VIEWLET_ID;
312 313 314 315 316 317 318 319 320 321 322 323
	static LABEL = localize('toggleExtensionsViewlet', "Show Extensions");

	constructor(
		id: string,
		label: string,
		@IViewletService viewletService: IViewletService,
		@IWorkbenchEditorService editorService: IWorkbenchEditorService
	) {
		super(id, label, VIEWLET_ID, viewletService, editorService);
	}
}

I
isidor 已提交
324 325 326 327 328
export class InstallExtensionsAction extends OpenExtensionsViewletAction {
	static ID = 'workbench.extensions.action.installExtensions';
	static LABEL = localize('installExtensions', "Install Extensions");
}

J
Joao Moreno 已提交
329
export class ShowInstalledExtensionsAction extends Action {
330

J
Joao Moreno 已提交
331 332
	static ID = 'workbench.extensions.action.showInstalledExtensions';
	static LABEL = localize('showInstalledExtensions', "Show Installed Extensions");
333 334 335 336

	constructor(
		id: string,
		label: string,
337 338
		@IViewletService private viewletService: IViewletService,
		@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService
339
	) {
340
		super(id, label, 'clear-extensions', true);
341 342 343 344 345 346
	}

	run(): TPromise<void> {
		return this.viewletService.openViewlet(VIEWLET_ID, true)
			.then(viewlet => viewlet as IExtensionsViewlet)
			.then(viewlet => {
347
				viewlet.search('');
348 349 350 351 352
				viewlet.focus();
			});
	}
}

J
Joao Moreno 已提交
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
export class ClearExtensionsInputAction extends ShowInstalledExtensionsAction {

	static ID = 'workbench.extensions.action.clearExtensionsInput';
	static LABEL = localize('clearExtensionsInput', "Clear Extensions Input");

	private disposables: IDisposable[] = [];

	constructor(
		id: string,
		label: string,
		onSearchChange: Event<string>,
		@IViewletService viewletService: IViewletService,
		@IExtensionsWorkbenchService extensionsWorkbenchService: IExtensionsWorkbenchService
	) {
		super(id, label, viewletService, extensionsWorkbenchService);
368
		this.enabled = false;
J
Joao Moreno 已提交
369 370 371 372 373 374 375 376 377 378 379 380
		onSearchChange(this.onSearchChange, this, this.disposables);
	}

	private onSearchChange(value: string): void {
		this.enabled = !!value;
	}

	dispose(): void {
		this.disposables = dispose(this.disposables);
	}
}

J
Joao Moreno 已提交
381
export class ShowOutdatedExtensionsAction extends Action {
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398

	static ID = 'workbench.extensions.action.listOutdatedExtensions';
	static LABEL = localize('showOutdatedExtensions', "Show Outdated Extensions");

	constructor(
		id: string,
		label: string,
		@IViewletService private viewletService: IViewletService
	) {
		super(id, label, null, true);
	}

	run(): TPromise<void> {

		return this.viewletService.openViewlet(VIEWLET_ID, true)
			.then(viewlet => viewlet as IExtensionsViewlet)
			.then(viewlet => {
399
				viewlet.search('@outdated');
400 401 402 403 404 405 406 407
				viewlet.focus();
			});
	}

	protected isEnabled(): boolean {
		return true;
	}
}
J
Joao Moreno 已提交
408 409 410 411 412 413 414 415 416 417 418

export class ShowPopularExtensionsAction extends Action {

	static ID = 'workbench.extensions.action.showPopularExtensions';
	static LABEL = localize('showPopularExtensions', "Show Popular Extensions");

	constructor(
		id: string,
		label: string,
		@IViewletService private viewletService: IViewletService
	) {
419
		super(id, label, null, true);
J
Joao Moreno 已提交
420 421 422 423 424 425
	}

	run(): TPromise<void> {
		return this.viewletService.openViewlet(VIEWLET_ID, true)
			.then(viewlet => viewlet as IExtensionsViewlet)
			.then(viewlet => {
426
				viewlet.search('@sort:installs');
J
Joao Moreno 已提交
427 428 429 430 431 432 433 434 435
				viewlet.focus();
			});
	}

	protected isEnabled(): boolean {
		return true;
	}
}

J
Joao Moreno 已提交
436
export class ShowRecommendedExtensionsAction extends Action {
J
Joao Moreno 已提交
437

J
Joao Moreno 已提交
438
	static ID = 'workbench.extensions.action.showRecommendedExtensions';
J
Joao Moreno 已提交
439
	static LABEL = localize('showRecommendedExtensions', "Show Recommended Extensions");
J
Joao Moreno 已提交
440 441 442 443 444 445

	constructor(
		id: string,
		label: string,
		@IViewletService private viewletService: IViewletService
	) {
446
		super(id, label, null, true);
J
Joao Moreno 已提交
447 448 449 450 451 452
	}

	run(): TPromise<void> {
		return this.viewletService.openViewlet(VIEWLET_ID, true)
			.then(viewlet => viewlet as IExtensionsViewlet)
			.then(viewlet => {
453
				viewlet.search('@recommended');
J
Joao Moreno 已提交
454 455 456 457
				viewlet.focus();
			});
	}

J
Joao Moreno 已提交
458 459 460 461 462
	protected isEnabled(): boolean {
		return true;
	}
}

S
Sandeep Somavarapu 已提交
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489
export class ShowWorkspaceRecommendedExtensionsAction extends Action {

	static ID = 'workbench.extensions.action.showWorkspaceRecommendedExtensions';
	static LABEL = localize('showWorkspaceRecommendedExtensions', "Show Workspace Recommended Extensions");

	constructor(
		id: string,
		label: string,
		@IViewletService private viewletService: IViewletService
	) {
		super(id, label, null, true);
	}

	run(): TPromise<void> {
		return this.viewletService.openViewlet(VIEWLET_ID, true)
			.then(viewlet => viewlet as IExtensionsViewlet)
			.then(viewlet => {
				viewlet.search('@recommended:workspace');
				viewlet.focus();
			});
	}

	protected isEnabled(): boolean {
		return true;
	}
}

J
Joao Moreno 已提交
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504
export class ChangeSortAction extends Action {

	private query: Query;
	private disposables: IDisposable[] = [];

	constructor(
		id: string,
		label: string,
		onSearchChange: Event<string>,
		private sortBy: string,
		private sortOrder: string,
		@IViewletService private viewletService: IViewletService
	) {
		super(id, label, null, true);

J
Joao Moreno 已提交
505
		if (sortBy === undefined && sortOrder === undefined) {
J
Joao Moreno 已提交
506 507 508 509
			throw new Error('bad arguments');
		}

		this.query = Query.parse('');
510
		this.enabled = false;
J
Joao Moreno 已提交
511 512 513 514 515 516
		onSearchChange(this.onSearchChange, this, this.disposables);
	}

	private onSearchChange(value: string): void {
		const query = Query.parse(value);
		this.query = new Query(query.value, this.sortBy || query.sortBy, this.sortOrder || query.sortOrder);
517
		this.enabled = value && this.query.isValid() && !this.query.equals(query);
J
Joao Moreno 已提交
518 519 520 521 522 523 524 525 526 527 528
	}

	run(): TPromise<void> {
		return this.viewletService.openViewlet(VIEWLET_ID, true)
			.then(viewlet => viewlet as IExtensionsViewlet)
			.then(viewlet => {
				viewlet.search(this.query.toString());
				viewlet.focus();
			});
	}

529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553
	protected isEnabled(): boolean {
		return true;
	}
}

export class OpenExtensionsFolderAction extends Action {

	static ID = 'workbench.extensions.action.openExtensionsFolder';
	static LABEL = localize('openExtensionsFolder', "Open Extensions Folder");

	constructor(
		id: string,
		label: string,
		@IEnvironmentService private environmentService: IEnvironmentService
	) {
		super(id, label, null, true);
	}

	run(): TPromise<any> {
		const extensionsHome = this.environmentService.extensionsPath;
		shell.showItemInFolder(paths.normalize(extensionsHome, true));

		return TPromise.as(true);
	}

J
Joao Moreno 已提交
554 555 556
	protected isEnabled(): boolean {
		return true;
	}
S
Sandeep Somavarapu 已提交
557 558
}

S
Sandeep Somavarapu 已提交
559 560 561
export class ConfigureWorkspaceRecommendedExtensionsAction extends Action {
	static ID = 'workbench.extensions.action.configureWorkspaceRecommendedExtensions';
	static LABEL = localize('configureWorkspaceRecommendedExtensions', "Configure Workspace Recommended Extensions");
S
Sandeep Somavarapu 已提交
562 563 564 565 566 567 568 569

	constructor(id: string, label: string, @IExtensionsWorkbenchService private extensionsService: IExtensionsWorkbenchService) {
		super(id, label, null, true);
	}

	public run(event: any): TPromise<any> {
		return this.extensionsService.openExtensionsFile();
	}
J
Joao Moreno 已提交
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596
}

export class InstallVSIXAction extends Action {

	static ID = 'workbench.extensions.action.installVSIX';
	static LABEL = localize('installVSIX', "Install from VSIX...");

	constructor(
		id = InstallVSIXAction.ID,
		label = InstallVSIXAction.LABEL,
		@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService
	) {
		super(id, label, 'extension-action install-vsix', true);
	}

	run(): TPromise<any> {
		const result = dialog.showOpenDialog(remote.getCurrentWindow(), {
			filters: [{ name: 'VSIX Extensions', extensions: ['vsix'] }],
			properties: ['openFile']
		});

		if (!result) {
			return TPromise.as(null);
		}

		return TPromise.join(result.map(vsix => this.extensionsWorkbenchService.install(vsix)));
	}
597
}