UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

21 lines (19 loc) 1.03 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { ResolvedKeybinding, Keybinding } from '@sussudio/base/common/keybindings.mjs'; import { IKeyboardEvent } from '../../keybinding/common/keybinding.mjs'; export interface IKeyboardMapper { dumpDebugInfo(): string; resolveKeyboardEvent(keyboardEvent: IKeyboardEvent): ResolvedKeybinding; resolveKeybinding(keybinding: Keybinding): ResolvedKeybinding[]; } export declare class CachedKeyboardMapper implements IKeyboardMapper { private _actual; private _cache; constructor(actual: IKeyboardMapper); dumpDebugInfo(): string; resolveKeyboardEvent(keyboardEvent: IKeyboardEvent): ResolvedKeybinding; resolveKeybinding(keybinding: Keybinding): ResolvedKeybinding[]; }