@eclipse-glsp/client
Version:
A sprotty-based client for GLSP
42 lines • 2.01 kB
TypeScript
/********************************************************************************
* Copyright (c) 2024 Axon Ivy AG and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/
import { IActionHandler } from '@eclipse-glsp/sprotty';
import { IFeedbackActionDispatcher } from '../../base/feedback/feedback-action-dispatcher';
import { FeedbackEmitter } from '../../base/feedback/feedback-emitter';
import { EnableDebugModeAction } from './debug-model';
export interface IDebugManager {
/** Flag to indicate whether the debug mode is enabled. */
readonly isDebugEnabled: boolean;
/** Sets the debug enabled state. */
setDebugEnabled(enabled: boolean): void;
/** Toggles the debug enabled state. */
toggleDebugEnabled(): void;
}
/**
* The default {@link IDebugManager} implementation.
* This class manages the debug mode and provides functionality to enable or disable it.
*/
export declare class DebugManager implements IActionHandler, IDebugManager {
protected _debugEnabled: boolean;
protected debugFeedback: FeedbackEmitter;
protected feedbackDispatcher: IFeedbackActionDispatcher;
get isDebugEnabled(): boolean;
protected init(): void;
handle(action: EnableDebugModeAction): void;
setDebugEnabled(enabled: boolean): void;
toggleDebugEnabled(): void;
}
//# sourceMappingURL=debug-manager.d.ts.map