workbenchTestServices.ts ×3

Frontier kind: Code frontier

unlabeled · c_1d025bfbaa2b

27 tests · 43958 LOC · 189 files · introduces 0 tests · 33 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges33 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4085 ranges43958 lines · 189 files · Browse complete extent
All tests (intent)
27 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.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

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

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

src/vs/workbench/test/common/workbenchTestServices.ts 33 introduced LOC · 3 ranges

Open complete file

827
828 export class TestLifecycleService extends Disposable implements ILifecycleService {
830 > declare readonly _serviceBrand: undefined;
831 >
832 > usePhases = false;
833 > _phase!: LifecyclePhase;
834 > get phase(): LifecyclePhase { return this._phase; }
835 > set phase(value: LifecyclePhase) {
836 this._phase = value;
837 if (value === LifecyclePhase.Starting) {
845 }
846 }
848 > private readonly whenStarted = new DeferredPromise<void>();
849 > private readonly whenReady = new DeferredPromise<void>();
850 > private readonly whenRestored = new DeferredPromise<void>();
851 > private readonly whenEventually = new DeferredPromise<void>();
852 > async when(phase: LifecyclePhase): Promise<void> {
853 if (!this.usePhases) {
854 return;
864 }
865 }
867 > startupKind!: StartupKind;
868 > willShutdown = false;
869 >
870 > private readonly _onBeforeShutdown = this._register(new Emitter<InternalBeforeShutdownEvent>());
871 > get onBeforeShutdown(): Event<InternalBeforeShutdownEvent> { return this._onBeforeShutdown.event; }
872 >
873 > private readonly _onBeforeShutdownError = this._register(new Emitter<BeforeShutdownErrorEvent>());
874 > get onBeforeShutdownError(): Event<BeforeShutdownErrorEvent> { return this._onBeforeShutdownError.event; }
875 >
876 > private readonly _onShutdownVeto = this._register(new Emitter<void>());
877 > get onShutdownVeto(): Event<void> { return this._onShutdownVeto.event; }
878 >
879 > private readonly _onWillShutdown = this._register(new Emitter<WillShutdownEvent>());
880 > get onWillShutdown(): Event<WillShutdownEvent> { return this._onWillShutdown.event; }
881 >
882 > private readonly _onDidShutdown = this._register(new Emitter<void>());
883 > get onDidShutdown(): Event<void> { return this._onDidShutdown.event; }
884 >
885 > shutdownJoiners: Promise<void>[] = [];
886
887 fireShutdown(reason = ShutdownReason.QUIT): void {