extHostExtensionActivator.ts ×5

Frontier kind: Joint frontier

unlabeled · c_1e03b029e5e6

1 test · 14995 LOC · 61 files · introduces 1 test · 31 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges31 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
2014 ranges14995 lines · 61 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 31 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/api/common/extHostExtensionActivator.ts 31 introduced LOC · 5 ranges

Open complete file

354
355 public get friendlyName(): string {
356 > return this._displayName || this._id.value; extHostExtensionActivator.ts
357 > }
358
359 constructor(
401
402 if (dep.value && dep.value.activationFailed) {
403 > // Error condition 2: a dependency has already failed activation extHostExtensionActivator.ts
404 > const error = new Error(`Cannot activate the '${this.friendlyName}' extension because its dependency '${dep.friendlyName}' failed to activate`);
405 > // eslint-disable-next-line local/code-no-any-casts
406 > (<any>error).detail = dep.value.activationFailedError;
407 > this._value = new FailedExtension(error);
408 > this._host.onExtensionActivationError(this._id, error, null);
409 > return;
410 > }
411 }
412
424 this._value = await this._host.actualActivateExtension(this._id, this._reason);
425 } catch (err) {
427 > const error = new Error();
428 > if (err && err.name) {
429 > error.name = err.name;
430 > }
431 > if (err && err.message) {
432 > error.message = `Activating extension '${this._id.value}' failed: ${err.message}.`;
433 > } else {
434 error.message = `Activating extension '${this._id.value}' failed: ${err}.`;
435 }
436 > if (err && err.stack) { extHostExtensionActivator.ts
437 > error.stack = err.stack;
438 > }
439 >
440 > // Treat the extension as being empty
441 > this._value = new FailedExtension(error);
442 >
443 > if (this._isDisposed && errors.isCancellationError(err)) {
444 // It is expected for ongoing activations to fail if the extension host is going down
445 // So simply ignore and don't log canceled errors in this case
446 return;
447 }
449 > this._host.onExtensionActivationError(this._id, error, null);
450 > this._logService.error(`Activating extension ${this._id.value} failed due to an error:`);
451 > this._logService.error(err);
452 > }
453 }
454 }