extensionHostMain.ts ×5

Frontier kind: Joint frontier

unlabeled · c_36465003f41e

4 tests · 82613 LOC · 303 files · introduces 1 test · 26 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges26 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
5807 ranges82613 lines · 303 files · Browse complete extent
All tests (intent)
4 testsBrowse 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.

2 files ranked by introduced lines: 26 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/api/common/extensionHostMain.ts 23 introduced LOC · 5 ranges

Open complete file

120 // below accesses the stack-property which triggers the code above
121 errors.setUnexpectedErrorHandler(err => {
123 > if (!errors.PendingMigrationError.is(err)) {
124 > logService.error(err);
125 > }
126 >
127 > const errorData = errors.transformErrorForSerialization(err);
128 >
129 > let extension: ExtensionIdentifier | undefined;
130 > if (err instanceof ExtensionError) {
131 extension = err.extension;
132 > } else { extensionHostMain.ts
133 > const stackData = extensionErrors.get(err);
134 > extension = stackData?.extensionIdentifier;
135 > }
136 >
137 > if (!extension) {
138 return;
139 }
141 > if (errors.PendingMigrationError.is(err)) {
142 // report pending migration via the API deprecation service which (1) informs the extensions author during
143 // dev-time and (2) collects telemetry so that we can reach out too
146 apiDeprecationService.report(err.name, extensionDesc, `${err.message}\n FROM: ${err.stack}`);
147 }
148 > } else { extensionHostMain.ts
149 > mainThreadExtensions.$onExtensionRuntimeError(extension, errorData);
150 > const reported = extensionTelemetry.onExtensionError(extension, err);
151 > logService.trace('forwarded error to extension?', reported, extension);
152 > }
153 });
154
155 errors.errorHandler.addListener(err => {
156 > mainThreadErrors.$onUnexpectedError(err); extensionHostMain.ts
157 });
158 }
src/vs/base/common/errors.ts 3 introduced LOC · 2 ranges

Open complete file

46 private emit(e: any): void {
47 this.listeners.forEach((listener) => {
48 > listener(e); errors.ts
49 });
50 }
236
237 static is(error: unknown): error is PendingMigrationError {
238 > return error instanceof PendingMigrationError || (error instanceof Error && error.name === PendingMigrationError._name); errors.ts
239 > }
240
241 constructor(message: string) {