UNPKG

@sussudio/platform

Version:

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

30 lines (28 loc) 1.25 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 } from '@sussudio/base/common/keybindings.mjs'; import { ContextKeyExpression } from '../../contextkey/common/contextkey.mjs'; export declare class ResolvedKeybindingItem { _resolvedKeybindingItemBrand: void; readonly resolvedKeybinding: ResolvedKeybinding | undefined; readonly chords: string[]; readonly bubble: boolean; readonly command: string | null; readonly commandArgs: any; readonly when: ContextKeyExpression | undefined; readonly isDefault: boolean; readonly extensionId: string | null; readonly isBuiltinExtension: boolean; constructor( resolvedKeybinding: ResolvedKeybinding | undefined, command: string | null, commandArgs: any, when: ContextKeyExpression | undefined, isDefault: boolean, extensionId: string | null, isBuiltinExtension: boolean, ); } export declare function toEmptyArrayIfContainsNull<T>(arr: (T | null)[]): T[];