src/vs/workbench/services/userActivity/common/userActivityRegistry.ts

23 LOC · 21 covered · 2 uncovered · 4 ranges · 5 concepts · 2 introducers · 5 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/userActivity/common/userActivityService.ts · 103 LOCcommon/userActivityServi…userActivityService.test|title=UserActivityService markActive sets active whenHeldFor|occurrence=1 · 0 introduced LOCuserActivityService.test…userActivityService.ts ×1 · 4 introduced LOCuserActivityService.ts ×…userActivityService.ts ×1 · 2 introduced LOCuserActivityService.ts ×…userActivityService.ts ×4 · 22 introduced LOCuserActivityService.ts ×…userActivityRegistry.ts ×3 · 96 introduced LOCuserActivityRegistry.ts …userActivityService.test|title=UserActivityService isActive should be true initially|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/userActivity/test/common/userActivityService.test|title=UserActivityService isActive should be true initially|occurrence=1userActivityService.test…userActivityService.test|title=UserActivityService markActive sets active whenHeldFor|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/userActivity/test/common/userActivityService.test|title=UserActivityService markActive sets active whenHeldFor|occurrence=1userActivityService.test…userActivityService.test|title=UserActivityService markActive should be inactive when all handles gone|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/userActivity/test/common/userActivityService.test|title=UserActivityService markActive should be inactive when all handles gone|occurrence=1userActivityService.test…userActivityService.test|title=UserActivityService markActive whenHeldFor before triggers|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/userActivity/test/common/userActivityService.test|title=UserActivityService markActive whenHeldFor before triggers|occurrence=1userActivityService.test…userActivityService.test|title=UserActivityService markActive with extendOnly only extends if already active|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/userActivity/test/common/userActivityService.test|title=UserActivityService markActive with extendOnly only extends if already active|occurrence=1userActivityService.test…Focused file · src/vs/workbench/services/userActivity/common/userActivityRegistry.ts · 23 LOCcommon/userActivityRegis…

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 > /*--------------------------------------------------------------------------------------------- userActivityRegistry.ts ×3
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 { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
7 > import { IUserActivityService } from './userActivityService.js';
8 >
9 > class UserActivityRegistry {
10 > private todo: { new(s: IUserActivityService, ...args: unknown[]): unknown }[] = [];
11 >
12 > public add = (ctor: { new(s: IUserActivityService, ...args: unknown[]): unknown }) => {
13 this.todo.push(ctor);
14 };
16 > public take(userActivityService: IUserActivityService, instantiation: IInstantiationService) {
17 > this.add = ctor => instantiation.createInstance(ctor, userActivityService); userActivityService.ts ×4
18 > this.todo.forEach(this.add);
19 > this.todo = [];
20 > }
22 >
23 > export const userActivityRegistry = new UserActivityRegistry();