src/vs/workbench/services/extensions/common/extensionRunningLocation.ts

51 LOC · 29 covered · 22 uncovered · 9 ranges · 5 concepts · 1 introducers · 6 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

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 related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the filesrc/vs/workbench/services/extensions/common/extensionHostKind.ts · 148 LOCcommon/extensionHostKind…src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.ts · 368 LOCcommon/extensionRunningL…extensionRunningLocationTracker.ts ×5 · 34 introduced LOCextensionRunningLocation…extensionRunningLocationTracker.ts ×3 · 10 introduced LOCextensionRunningLocation…extensionRunningLocationTracker.ts ×3 · 11 introduced LOCextensionRunningLocation…extensionRunningLocationTracker.ts ×1 · 3 introduced LOCextensionRunningLocation…extensionRunningLocationTracker.ts ×24 · 295 introduced LOCextensionRunningLocation…extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity extensionAffinity combined with extensionDependencies|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/extensions/test/common/extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity extensionAffinity combined with extensionDependencies|occurrence=1extensionRunningLocation…extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity extensionAffinity with non-installed extension should be ignored|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/extensions/test/common/extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity extensionAffinity with non-installed extension should be ignored|occurrence=1extensionRunningLocation…extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity extensions with extensionAffinity should have the same affinity|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/extensions/test/common/extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity extensions with extensionAffinity should have the same affinity|occurrence=1extensionRunningLocation…extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity one-way extensionAffinity is sufficient|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/extensions/test/common/extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity one-way extensionAffinity is sufficient|occurrence=1extensionRunningLocation…extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity transitive extensionAffinity should group all extensions together|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/extensions/test/common/extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity transitive extensionAffinity should group all extensions together|occurrence=1extensionRunningLocation…extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity user configured affinity should override extensionAffinity|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/extensions/test/common/extensionRunningLocationTracker.test|title=ExtensionRunningLocationTracker - extensionAffinity user configured affinity should override extensionAffinity|occurrence=1extensionRunningLocation…Focused file · src/vs/workbench/services/extensions/common/extensionRunningLocation.ts · 51 LOCcommon/extensionRunningL…

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 > /*--------------------------------------------------------------------------------------------- extensionRunningLocationTracker.ts ×24
2 > * Copyright (c) Microsoft Corporation. All rights reserved.
3 > * Licensed under the MIT License. See License.txt in the project root for license information.
4 > *--------------------------------------------------------------------------------------------*/
5 >
6 > import { ExtensionHostKind } from './extensionHostKind.js';
7 >
8 > export class LocalProcessRunningLocation {
9 > public readonly kind = ExtensionHostKind.LocalProcess;
10 > constructor(
11 > public readonly affinity: number
12 > ) { }
13 > public equals(other: ExtensionRunningLocation) {
14 return (this.kind === other.kind && this.affinity === other.affinity);
15 }
16 > public asString(): string { extensionRunningLocationTracker.ts ×24
17 if (this.affinity === 0) {
18 return 'LocalProcess';
19 }
20 return `LocalProcess${this.affinity}`;
21 }
23 >
24 > export class LocalWebWorkerRunningLocation {
25 > public readonly kind = ExtensionHostKind.LocalWebWorker;
26 > constructor(
27 public readonly affinity: number
28 ) { }
29 > public equals(other: ExtensionRunningLocation) { extensionRunningLocationTracker.ts ×24
30 return (this.kind === other.kind && this.affinity === other.affinity);
31 }
32 > public asString(): string { extensionRunningLocationTracker.ts ×24
33 if (this.affinity === 0) {
34 return 'LocalWebWorker';
35 }
36 return `LocalWebWorker${this.affinity}`;
37 }
39 >
40 > export class RemoteRunningLocation {
41 public readonly kind = ExtensionHostKind.Remote;
42 public readonly affinity = 0;
43 > public equals(other: ExtensionRunningLocation) { extensionRunningLocationTracker.ts ×24
44 return (this.kind === other.kind);
45 }
46 > public asString(): string { extensionRunningLocationTracker.ts ×24
47 return 'Remote';
48 }
50 >
51 > export type ExtensionRunningLocation = LocalProcessRunningLocation | LocalWebWorkerRunningLocation | RemoteRunningLocation;