Path: blob/main/components/gitpod-protocol/src/ide-frontend-service.ts
2498 views
/**1* Copyright (c) 2020 Gitpod GmbH. All rights reserved.2* Licensed under the GNU Affero General Public License (AGPL).3* See License.AGPL.txt in the project root for license information.4*/56import { Event } from "./util/event";7import { Disposable } from "./util/disposable";89export type IDEFrontendState = "init" | "ready" | "terminated";1011export interface IDEFrontendService {12readonly state: IDEFrontendState;13/**14* A cause of the ide frontend application failure when state is terminated.15*/16readonly failureCause?: Error;17readonly onDidChange: Event<void>;18/**19* Starts the ide frontend application.20* Returns the disposable object which is triggered when the ide application should be stopped.21*22* On stop the application should store the unsaved changes.23* It won't receive any `beforeunload` events from window anymore to prevent24* confirmation dialogs for stopped workspaces.25*/26start(): Disposable;27}282930