in src/Controller.ts [101:109]
public async stopBootApp(app: BootApp, restart?: boolean): Promise<void> {
// TODO: How to send a shutdown signal to the app instead of killing the process directly?
const session: vscode.DebugSession | undefined = this._manager.getSessionByApp(app);
if (session) {
await session.customRequest("disconnect", { restart: !!restart });
} else {
// What if session not found? Force to set STATE_INACTIVE?
}
}