2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import * as fs from 'fs';
7
>
import assert from 'assert';
8
>
import * as path from '../../../../../base/common/path.js';
9
>
import { SingleModifierChord, ResolvedKeybinding, Keybinding } from '../../../../../base/common/keybindings.js';
10
>
import { Promises } from '../../../../../base/node/pfs.js';
11
>
import { IKeyboardEvent } from '../../../../../platform/keybinding/common/keybinding.js';
12
>
import { IKeyboardMapper } from '../../../../../platform/keyboardLayout/common/keyboardMapper.js';
13
>
import { FileAccess } from '../../../../../base/common/network.js';
14
>
15
>
export interface IResolvedKeybinding {
16
>
label: string | null;
17
>
ariaLabel: string | null;
18
>
electronAccelerator: string | null;
19
>
userSettingsLabel: string | null;
20
>
isWYSIWYG: boolean;
21
>
isMultiChord: boolean;
22
>
dispatchParts: (string | null)[];
23
>
singleModifierDispatchParts: (SingleModifierChord | null)[];
24
>
}
25
>
26
function toIResolvedKeybinding(kb: ResolvedKeybinding): IResolvedKeybinding {
27
return {