Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/contrib/debug/common/debugCompoundRoot.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
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 { Emitter } from '../../../../base/common/event.js';
7
8
export class DebugCompoundRoot {
9
private stopped = false;
10
private stopEmitter = new Emitter<void>();
11
12
onDidSessionStop = this.stopEmitter.event;
13
14
sessionStopped(): void {
15
if (!this.stopped) { // avoid sending extranous terminate events
16
this.stopped = true;
17
this.stopEmitter.fire();
18
}
19
}
20
}
21
22