@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
38 lines (36 loc) • 1.53 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IContextMenuDelegate } from '@sussudio/base/browser/contextmenu.mjs';
import { IContextViewService } from './contextView.mjs';
import { IKeybindingService } from '../../keybinding/common/keybinding.mjs';
import { INotificationService } from '../../notification/common/notification.mjs';
import { ITelemetryService } from '../../telemetry/common/telemetry.mjs';
import { IThemeService } from '../../theme/common/themeService.mjs';
export interface IContextMenuHandlerOptions {
blockMouse: boolean;
}
export declare class ContextMenuHandler {
private contextViewService;
private telemetryService;
private notificationService;
private keybindingService;
private themeService;
private focusToReturn;
private lastContainer;
private block;
private blockDisposable;
private options;
constructor(
contextViewService: IContextViewService,
telemetryService: ITelemetryService,
notificationService: INotificationService,
keybindingService: IKeybindingService,
themeService: IThemeService,
);
configure(options: IContextMenuHandlerOptions): void;
showContextMenu(delegate: IContextMenuDelegate): void;
private onActionRun;
private onDidActionRun;
}