sussudio
Version:
An unofficial VS Code Internal API
31 lines (30 loc) • 1.56 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 "../../../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;
}