@codingame/monaco-vscode-keybindings-service-override 12.0.1 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -4
- package/index.js +23 -23
- package/package.json +9 -11
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.d.ts +1 -1
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +4 -4
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardMapper.d.ts +2 -2
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +11 -11
- package/vscode/src/vs/workbench/browser/contextkeys.js +26 -26
- package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/preferences/common/smartSnippetInserter.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/smartSnippetInserter.js +3 -3
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.d.ts +4 -4
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +150 -150
- package/vscode/src/vs/workbench/services/commands/common/commandService.d.ts +7 -7
- package/vscode/src/vs/workbench/services/commands/common/commandService.js +9 -9
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.d.ts +16 -16
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +66 -66
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.d.ts +10 -10
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +21 -21
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.d.ts +3 -3
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.js +1 -1
- package/vscode/src/vs/workbench/services/keybinding/common/keymapInfo.js +1 -1
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.d.ts +4 -4
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +5 -5
- package/vscode/src/vs/workbench/services/keybinding/common/windowsKeyboardMapper.d.ts +4 -4
- package/vscode/src/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +7 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
-
import { ICommandEvent } from "vscode/vscode/vs/platform/commands/common/commands";
|
|
3
|
-
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
4
|
-
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
5
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
6
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
7
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
1
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { ICommandEvent } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands";
|
|
3
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
4
|
+
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
5
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
6
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
7
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
8
8
|
export declare class CommandService extends Disposable implements ICommandService {
|
|
9
9
|
private readonly _instantiationService;
|
|
10
10
|
private readonly _extensionService;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
|
-
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
5
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
6
|
-
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
7
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
9
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
10
|
-
import { timeout } from 'vscode/vscode/vs/base/common/async';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
|
+
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
5
|
+
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
6
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
9
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
10
|
+
import { timeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
11
11
|
|
|
12
12
|
let CommandService = class CommandService extends Disposable {
|
|
13
13
|
constructor(_instantiationService, _extensionService, _logService) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Keybinding, ResolvedKeybinding } from "vscode/vscode/vs/base/common/keybindings";
|
|
2
|
-
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
3
|
-
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
5
|
-
import { AbstractKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/abstractKeybindingService";
|
|
6
|
-
import { IKeyboardEvent, KeybindingsSchemaContribution } from "vscode/vscode/vs/platform/keybinding/common/keybinding";
|
|
7
|
-
import { KeybindingResolver } from "vscode/vscode/vs/platform/keybinding/common/keybindingResolver";
|
|
8
|
-
import { ResolvedKeybindingItem } from "vscode/vscode/vs/platform/keybinding/common/resolvedKeybindingItem";
|
|
9
|
-
import { IKeyboardLayoutService } from "vscode/vscode/vs/platform/keyboardLayout/common/keyboardLayout.service";
|
|
10
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
11
|
-
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
12
|
-
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
13
|
-
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
14
|
-
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
15
|
-
import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
|
|
16
|
-
import { IUserDataProfileService } from "vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
1
|
+
import { Keybinding, ResolvedKeybinding } from "@codingame/monaco-vscode-api/vscode/vs/base/common/keybindings";
|
|
2
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
3
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
5
|
+
import { AbstractKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/abstractKeybindingService";
|
|
6
|
+
import { IKeyboardEvent, KeybindingsSchemaContribution } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding";
|
|
7
|
+
import { KeybindingResolver } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingResolver";
|
|
8
|
+
import { ResolvedKeybindingItem } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/resolvedKeybindingItem";
|
|
9
|
+
import { IKeyboardLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keyboardLayout/common/keyboardLayout.service";
|
|
10
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
11
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
12
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
13
|
+
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
14
|
+
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
15
|
+
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
16
|
+
import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
17
17
|
export declare class WorkbenchKeybindingService extends AbstractKeybindingService {
|
|
18
18
|
private readonly hostService;
|
|
19
19
|
private readonly keyboardLayoutService;
|
|
@@ -1,87 +1,87 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { onDidChangeFullscreen, isFullscreen } from 'vscode/vscode/vs/base/browser/browser';
|
|
5
|
-
import { BrowserFeatures, KeyboardSupport } from 'vscode/vscode/vs/base/browser/canIUse';
|
|
6
|
-
import { onDidRegisterWindow, addDisposableListener, EventType, trackFocus, getWindow } from 'vscode/vscode/vs/base/browser/dom';
|
|
7
|
-
import { StandardKeyboardEvent, printKeyboardEvent, printStandardKeyboardEvent } from 'vscode/vscode/vs/base/browser/keyboardEvent';
|
|
8
|
-
import { DeferredPromise, RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
9
|
-
import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
10
|
-
import { parse } from 'vscode/vscode/vs/base/common/json';
|
|
11
|
-
import { UserSettingsLabelProvider } from 'vscode/vscode/vs/base/common/keybindingLabels';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { onDidChangeFullscreen, isFullscreen } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
|
|
5
|
+
import { BrowserFeatures, KeyboardSupport } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/canIUse';
|
|
6
|
+
import { onDidRegisterWindow, addDisposableListener, EventType, trackFocus, getWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
7
|
+
import { StandardKeyboardEvent, printKeyboardEvent, printStandardKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/keyboardEvent';
|
|
8
|
+
import { DeferredPromise, RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
9
|
+
import { Event, Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
10
|
+
import { parse } from '@codingame/monaco-vscode-api/vscode/vs/base/common/json';
|
|
11
|
+
import { UserSettingsLabelProvider } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keybindingLabels';
|
|
12
12
|
import { KeybindingParser } from '@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common/vscode/vs/base/common/keybindingParser';
|
|
13
|
-
import { KeyCodeChord, ScanCodeChord } from 'vscode/vscode/vs/base/common/keybindings';
|
|
14
|
-
import { ScanCode, KeyCode, KeyCodeUtils, ScanCodeUtils, KeyMod, IMMUTABLE_CODE_TO_KEY_CODE } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
15
|
-
import { DisposableStore, Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
16
|
-
import { equals } from 'vscode/vscode/vs/base/common/objects';
|
|
17
|
-
import { OS, OperatingSystem, isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
18
|
-
import { dirname } from 'vscode/vscode/vs/base/common/resources';
|
|
19
|
-
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
20
|
-
import { MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
21
|
-
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
22
|
-
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
23
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
24
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
25
|
-
import { FileOperation } from 'vscode/vscode/vs/platform/files/common/files';
|
|
26
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
27
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
28
|
-
import { Extensions } from 'vscode/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
|
|
29
|
-
import { AbstractKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/abstractKeybindingService';
|
|
30
|
-
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
31
|
-
import { KeybindingResolver } from 'vscode/vscode/vs/platform/keybinding/common/keybindingResolver';
|
|
32
|
-
import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
33
|
-
import { ResolvedKeybindingItem } from 'vscode/vscode/vs/platform/keybinding/common/resolvedKeybindingItem';
|
|
34
|
-
import { IKeyboardLayoutService } from 'vscode/vscode/vs/platform/keyboardLayout/common/keyboardLayout.service';
|
|
35
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
36
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
37
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
38
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
39
|
-
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
40
|
-
import { isLocalizedString } from 'vscode/vscode/vs/platform/action/common/action';
|
|
13
|
+
import { KeyCodeChord, ScanCodeChord } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keybindings';
|
|
14
|
+
import { ScanCode, KeyCode, KeyCodeUtils, ScanCodeUtils, KeyMod, IMMUTABLE_CODE_TO_KEY_CODE } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
15
|
+
import { DisposableStore, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
16
|
+
import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
17
|
+
import { OS, OperatingSystem, isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
18
|
+
import { dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
19
|
+
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
20
|
+
import { MenuRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
21
|
+
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
22
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
23
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
24
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
25
|
+
import { FileOperation } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
26
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
27
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
28
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
|
|
29
|
+
import { AbstractKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/abstractKeybindingService';
|
|
30
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
31
|
+
import { KeybindingResolver } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingResolver';
|
|
32
|
+
import { KeybindingsRegistry, KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
33
|
+
import { ResolvedKeybindingItem } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/resolvedKeybindingItem';
|
|
34
|
+
import { IKeyboardLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keyboardLayout/common/keyboardLayout.service';
|
|
35
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
36
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
37
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
38
|
+
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
39
|
+
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
40
|
+
import { isLocalizedString } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/action';
|
|
41
41
|
import { commandsExtensionPoint } from '../../actions/common/menusExtensionPoint.js';
|
|
42
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
43
|
-
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
44
|
-
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
42
|
+
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
43
|
+
import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
44
|
+
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
45
45
|
import { getAllUnboundCommands } from '@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common/vscode/vs/workbench/services/keybinding/browser/unboundCommands';
|
|
46
46
|
import { OutputBuilder, KeybindingIO } from '../common/keybindingIO.js';
|
|
47
|
-
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
47
|
+
import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
48
48
|
|
|
49
49
|
var WorkbenchKeybindingService_1;
|
|
50
50
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
51
51
|
if (!keyBinding) {
|
|
52
|
-
rejects.push(( localize(
|
|
52
|
+
rejects.push(( localize(11607, "expected non-empty value.")));
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
55
|
if (typeof keyBinding.command !== 'string') {
|
|
56
56
|
rejects.push(( localize(
|
|
57
|
-
|
|
57
|
+
11608,
|
|
58
58
|
"property `{0}` is mandatory and must be of type `string`",
|
|
59
59
|
'command'
|
|
60
60
|
)));
|
|
61
61
|
return false;
|
|
62
62
|
}
|
|
63
63
|
if (keyBinding.key && typeof keyBinding.key !== 'string') {
|
|
64
|
-
rejects.push(( localize(
|
|
64
|
+
rejects.push(( localize(11609, "property `{0}` can be omitted or must be of type `string`", 'key')));
|
|
65
65
|
return false;
|
|
66
66
|
}
|
|
67
67
|
if (keyBinding.when && typeof keyBinding.when !== 'string') {
|
|
68
|
-
rejects.push(( localize(
|
|
68
|
+
rejects.push(( localize(11609, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
if (keyBinding.mac && typeof keyBinding.mac !== 'string') {
|
|
72
|
-
rejects.push(( localize(
|
|
72
|
+
rejects.push(( localize(11609, "property `{0}` can be omitted or must be of type `string`", 'mac')));
|
|
73
73
|
return false;
|
|
74
74
|
}
|
|
75
75
|
if (keyBinding.linux && typeof keyBinding.linux !== 'string') {
|
|
76
76
|
rejects.push(( localize(
|
|
77
|
-
|
|
77
|
+
11609,
|
|
78
78
|
"property `{0}` can be omitted or must be of type `string`",
|
|
79
79
|
'linux'
|
|
80
80
|
)));
|
|
81
81
|
return false;
|
|
82
82
|
}
|
|
83
83
|
if (keyBinding.win && typeof keyBinding.win !== 'string') {
|
|
84
|
-
rejects.push(( localize(
|
|
84
|
+
rejects.push(( localize(11609, "property `{0}` can be omitted or must be of type `string`", 'win')));
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
87
|
return true;
|
|
@@ -91,33 +91,33 @@ const keybindingType = {
|
|
|
91
91
|
default: { command: '', key: '' },
|
|
92
92
|
properties: {
|
|
93
93
|
command: {
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(11610, 'Identifier of the command to run when keybinding is triggered.')),
|
|
95
95
|
type: 'string'
|
|
96
96
|
},
|
|
97
97
|
args: {
|
|
98
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(11611, "Arguments to pass to the command to execute."))
|
|
99
99
|
},
|
|
100
100
|
key: {
|
|
101
101
|
description: ( localize(
|
|
102
|
-
|
|
102
|
+
11612,
|
|
103
103
|
'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
|
|
104
104
|
)),
|
|
105
105
|
type: 'string'
|
|
106
106
|
},
|
|
107
107
|
mac: {
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(11613, 'Mac specific key or key sequence.')),
|
|
109
109
|
type: 'string'
|
|
110
110
|
},
|
|
111
111
|
linux: {
|
|
112
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(11614, 'Linux specific key or key sequence.')),
|
|
113
113
|
type: 'string'
|
|
114
114
|
},
|
|
115
115
|
win: {
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(11615, 'Windows specific key or key sequence.')),
|
|
117
117
|
type: 'string'
|
|
118
118
|
},
|
|
119
119
|
when: {
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(11616, 'Condition when the key is active.')),
|
|
121
121
|
type: 'string'
|
|
122
122
|
},
|
|
123
123
|
}
|
|
@@ -126,7 +126,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
126
126
|
extensionPoint: 'keybindings',
|
|
127
127
|
deps: [commandsExtensionPoint],
|
|
128
128
|
jsonSchema: {
|
|
129
|
-
description: ( localize(
|
|
129
|
+
description: ( localize(11617, "Contributes keybindings.")),
|
|
130
130
|
oneOf: [
|
|
131
131
|
keybindingType,
|
|
132
132
|
{
|
|
@@ -505,7 +505,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
505
505
|
}
|
|
506
506
|
if (rejects.length > 0) {
|
|
507
507
|
collector.error(( localize(
|
|
508
|
-
|
|
508
|
+
11618,
|
|
509
509
|
"Invalid `contributes.{0}`: {1}",
|
|
510
510
|
keybindingsExtPoint.name,
|
|
511
511
|
rejects.join('\n')
|
|
@@ -593,7 +593,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
593
593
|
static _getAllCommandsAsComment(boundCommands) {
|
|
594
594
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
595
595
|
const pretty = unboundCommands.sort().join('\n// - ');
|
|
596
|
-
return '// ' + ( localize(
|
|
596
|
+
return '// ' + ( localize(11619, "Here are other available commands: ")) + '\n// - ' + pretty;
|
|
597
597
|
}
|
|
598
598
|
mightProducePrintableCharacter(event) {
|
|
599
599
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -718,7 +718,7 @@ class KeybindingsJsonSchema {
|
|
|
718
718
|
this.schema = {
|
|
719
719
|
id: KeybindingsJsonSchema.schemaId,
|
|
720
720
|
type: 'array',
|
|
721
|
-
title: ( localize(
|
|
721
|
+
title: ( localize(11620, "Keybindings configuration")),
|
|
722
722
|
allowTrailingCommas: true,
|
|
723
723
|
allowComments: true,
|
|
724
724
|
definitions: {
|
|
@@ -742,7 +742,7 @@ class KeybindingsJsonSchema {
|
|
|
742
742
|
'type': 'string',
|
|
743
743
|
'enum': this.commandsEnum,
|
|
744
744
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
745
|
-
'description': ( localize(
|
|
745
|
+
'description': ( localize(11621, "Name of the command to execute")),
|
|
746
746
|
},
|
|
747
747
|
'commandType': {
|
|
748
748
|
'anyOf': [
|
|
@@ -753,7 +753,7 @@ class KeybindingsJsonSchema {
|
|
|
753
753
|
'type': 'string',
|
|
754
754
|
'enum': this.removalCommandsEnum,
|
|
755
755
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
756
|
-
'description': ( localize(
|
|
756
|
+
'description': ( localize(11622, "Name of the command to remove keyboard shortcut for")),
|
|
757
757
|
},
|
|
758
758
|
{
|
|
759
759
|
'type': 'string'
|
|
@@ -771,7 +771,7 @@ class KeybindingsJsonSchema {
|
|
|
771
771
|
'properties': {
|
|
772
772
|
'key': {
|
|
773
773
|
'type': 'string',
|
|
774
|
-
'description': ( localize(
|
|
774
|
+
'description': ( localize(11623, "Key or key sequence (separated by space)")),
|
|
775
775
|
},
|
|
776
776
|
'command': {
|
|
777
777
|
'anyOf': [
|
|
@@ -784,7 +784,7 @@ class KeybindingsJsonSchema {
|
|
|
784
784
|
'type': 'array'
|
|
785
785
|
},
|
|
786
786
|
'errorMessage': ( localize(
|
|
787
|
-
|
|
787
|
+
11624,
|
|
788
788
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
789
789
|
'string'
|
|
790
790
|
))
|
|
@@ -800,10 +800,10 @@ class KeybindingsJsonSchema {
|
|
|
800
800
|
},
|
|
801
801
|
'when': {
|
|
802
802
|
'type': 'string',
|
|
803
|
-
'description': ( localize(
|
|
803
|
+
'description': ( localize(11625, "Condition when the key is active."))
|
|
804
804
|
},
|
|
805
805
|
'args': {
|
|
806
|
-
'description': ( localize(
|
|
806
|
+
'description': ( localize(11626, "Arguments to pass to the command to execute."))
|
|
807
807
|
}
|
|
808
808
|
},
|
|
809
809
|
'$ref': '#/definitions/commandsSchemas'
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { KeymapInfo } from "../common/keymapInfo.js";
|
|
4
4
|
import { IKeyboardMapper } from "../../../../platform/keyboardLayout/common/keyboardMapper.js";
|
|
5
|
-
import { IKeyboardEvent } from "vscode/vscode/vs/platform/keybinding/common/keybinding";
|
|
6
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
7
|
-
import { IEnvironmentService } from "vscode/vscode/vs/platform/environment/common/environment.service";
|
|
8
|
-
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
9
|
-
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
10
|
-
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
11
|
-
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
5
|
+
import { IKeyboardEvent } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding";
|
|
6
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
7
|
+
import { IEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service";
|
|
8
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
9
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
10
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
11
|
+
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
12
12
|
import { IKeyboardLayoutInfo, IKeyboardMapping } from "@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common/vscode/vs/platform/keyboardLayout/common/keyboardLayout";
|
|
13
|
-
import { IKeyboardLayoutService } from "vscode/vscode/vs/platform/keyboardLayout/common/keyboardLayout.service";
|
|
13
|
+
import { IKeyboardLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keyboardLayout/common/keyboardLayout.service";
|
|
14
14
|
export declare class BrowserKeyboardMapperFactoryBase extends Disposable {
|
|
15
15
|
private readonly _configurationService;
|
|
16
16
|
protected _initialized: boolean;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
5
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { KeymapInfo } from '../common/keymapInfo.js';
|
|
7
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
7
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
8
8
|
import { readKeyboardConfig, DispatchConfig } from '../../../../platform/keyboardLayout/common/keyboardConfig.js';
|
|
9
9
|
import { CachedKeyboardMapper } from '../../../../platform/keyboardLayout/common/keyboardMapper.js';
|
|
10
|
-
import { OS, OperatingSystem, isWindows, isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
10
|
+
import { OS, OperatingSystem, isWindows, isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
11
11
|
import { WindowsKeyboardMapper } from '../common/windowsKeyboardMapper.js';
|
|
12
|
-
import { FallbackKeyboardMapper } from 'vscode/vscode/vs/workbench/services/keybinding/common/fallbackKeyboardMapper';
|
|
12
|
+
import { FallbackKeyboardMapper } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/keybinding/common/fallbackKeyboardMapper';
|
|
13
13
|
import { MacLinuxKeyboardMapper } from '../common/macLinuxKeyboardMapper.js';
|
|
14
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
15
|
-
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
16
|
-
import { parse, getNodeType } from 'vscode/vscode/vs/base/common/json';
|
|
17
|
-
import { equals } from 'vscode/vscode/vs/base/common/objects';
|
|
18
|
-
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
|
19
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
20
|
-
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
21
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
22
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
23
|
-
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
24
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
14
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
15
|
+
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
16
|
+
import { parse, getNodeType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/json';
|
|
17
|
+
import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
18
|
+
import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service';
|
|
19
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
20
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
21
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
22
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
23
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
24
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
25
25
|
import { getKeyboardLayoutId } from '@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common/vscode/vs/platform/keyboardLayout/common/keyboardLayout';
|
|
26
|
-
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
26
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
27
27
|
|
|
28
28
|
function __variableDynamicImportRuntime0__(path) {
|
|
29
29
|
switch (path) {
|
|
@@ -483,12 +483,12 @@ const keyboardConfiguration = {
|
|
|
483
483
|
'id': 'keyboard',
|
|
484
484
|
'order': 15,
|
|
485
485
|
'type': 'object',
|
|
486
|
-
'title': ( localize(
|
|
486
|
+
'title': ( localize(11627, "Keyboard")),
|
|
487
487
|
'properties': {
|
|
488
488
|
'keyboard.layout': {
|
|
489
489
|
'type': 'string',
|
|
490
490
|
'default': 'autodetect',
|
|
491
|
-
'description': ( localize(
|
|
491
|
+
'description': ( localize(11628, "Control the keyboard layout used in web."))
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Keybinding } from "vscode/vscode/vs/base/common/keybindings";
|
|
2
|
-
import { ContextKeyExpression } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
|
|
3
|
-
import { ResolvedKeybindingItem } from "vscode/vscode/vs/platform/keybinding/common/resolvedKeybindingItem";
|
|
1
|
+
import { Keybinding } from "@codingame/monaco-vscode-api/vscode/vs/base/common/keybindings";
|
|
2
|
+
import { ContextKeyExpression } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
3
|
+
import { ResolvedKeybindingItem } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/resolvedKeybindingItem";
|
|
4
4
|
export interface IUserKeybindingItem {
|
|
5
5
|
keybinding: Keybinding | null;
|
|
6
6
|
command: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { KeybindingParser } from '@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common/vscode/vs/base/common/keybindingParser';
|
|
3
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
3
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
4
|
|
|
5
5
|
class KeybindingIO {
|
|
6
6
|
static writeKeybindingItem(out, item) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { isWindows, isLinux } from 'vscode/vscode/vs/base/common/platform';
|
|
2
|
+
import { isWindows, isLinux } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
3
3
|
import { getKeyboardLayoutId } from '@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common/vscode/vs/platform/keyboardLayout/common/keyboardLayout';
|
|
4
4
|
|
|
5
5
|
function deserializeMapping(serializedMapping) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ResolvedKeybinding, KeyCodeChord, SingleModifierChord, ScanCodeChord, Keybinding } from "vscode/vscode/vs/base/common/keybindings";
|
|
2
|
-
import { OperatingSystem } from "vscode/vscode/vs/base/common/platform";
|
|
3
|
-
import { IKeyboardEvent } from "vscode/vscode/vs/platform/keybinding/common/keybinding";
|
|
1
|
+
import { ResolvedKeybinding, KeyCodeChord, SingleModifierChord, ScanCodeChord, Keybinding } from "@codingame/monaco-vscode-api/vscode/vs/base/common/keybindings";
|
|
2
|
+
import { OperatingSystem } from "@codingame/monaco-vscode-api/vscode/vs/base/common/platform";
|
|
3
|
+
import { IKeyboardEvent } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding";
|
|
4
4
|
import { IKeyboardMapper } from "../../../../platform/keyboardLayout/common/keyboardMapper.js";
|
|
5
|
-
import { BaseResolvedKeybinding } from "vscode/vscode/vs/platform/keybinding/common/baseResolvedKeybinding";
|
|
5
|
+
import { BaseResolvedKeybinding } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/baseResolvedKeybinding";
|
|
6
6
|
import { IMacLinuxKeyboardMapping } from "@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common/vscode/vs/platform/keyboardLayout/common/keyboardLayout";
|
|
7
7
|
export declare class NativeResolvedKeybinding extends BaseResolvedKeybinding<ScanCodeChord> {
|
|
8
8
|
private readonly _mapper;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
import { CharCode } from 'vscode/vscode/vs/base/common/charCode';
|
|
3
|
-
import { IMMUTABLE_CODE_TO_KEY_CODE, KeyCode, ScanCode, ScanCodeUtils, KeyCodeUtils, IMMUTABLE_KEY_CODE_TO_CODE } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
4
|
-
import { ScanCodeChord, KeyCodeChord } from 'vscode/vscode/vs/base/common/keybindings';
|
|
5
|
-
import { OperatingSystem } from 'vscode/vscode/vs/base/common/platform';
|
|
6
|
-
import { BaseResolvedKeybinding } from 'vscode/vscode/vs/platform/keybinding/common/baseResolvedKeybinding';
|
|
2
|
+
import { CharCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/charCode';
|
|
3
|
+
import { IMMUTABLE_CODE_TO_KEY_CODE, KeyCode, ScanCode, ScanCodeUtils, KeyCodeUtils, IMMUTABLE_KEY_CODE_TO_CODE } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
4
|
+
import { ScanCodeChord, KeyCodeChord } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keybindings';
|
|
5
|
+
import { OperatingSystem } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
6
|
+
import { BaseResolvedKeybinding } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/baseResolvedKeybinding';
|
|
7
7
|
|
|
8
8
|
const CHAR_CODE_TO_KEY_CODE = [];
|
|
9
9
|
class NativeResolvedKeybinding extends BaseResolvedKeybinding {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { KeyCode, ScanCode } from "vscode/vscode/vs/base/common/keyCodes";
|
|
2
|
-
import { ResolvedKeybinding, KeyCodeChord, SingleModifierChord, ScanCodeChord, Keybinding } from "vscode/vscode/vs/base/common/keybindings";
|
|
3
|
-
import { IKeyboardEvent } from "vscode/vscode/vs/platform/keybinding/common/keybinding";
|
|
1
|
+
import { KeyCode, ScanCode } from "@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes";
|
|
2
|
+
import { ResolvedKeybinding, KeyCodeChord, SingleModifierChord, ScanCodeChord, Keybinding } from "@codingame/monaco-vscode-api/vscode/vs/base/common/keybindings";
|
|
3
|
+
import { IKeyboardEvent } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding";
|
|
4
4
|
import { IKeyboardMapper } from "../../../../platform/keyboardLayout/common/keyboardMapper.js";
|
|
5
|
-
import { BaseResolvedKeybinding } from "vscode/vscode/vs/platform/keybinding/common/baseResolvedKeybinding";
|
|
5
|
+
import { BaseResolvedKeybinding } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/baseResolvedKeybinding";
|
|
6
6
|
import { IWindowsKeyboardMapping } from "@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common/vscode/vs/platform/keyboardLayout/common/keyboardLayout";
|
|
7
7
|
export interface IScanCodeMapping {
|
|
8
8
|
scanCode: ScanCode;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import { CharCode } from 'vscode/vscode/vs/base/common/charCode';
|
|
3
|
-
import { KeyCodeUtils, KeyCode, ScanCode, IMMUTABLE_CODE_TO_KEY_CODE, ScanCodeUtils, NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
4
|
-
import { ScanCodeChord, KeyCodeChord } from 'vscode/vscode/vs/base/common/keybindings';
|
|
5
|
-
import { UILabelProvider } from 'vscode/vscode/vs/base/common/keybindingLabels';
|
|
6
|
-
import { OperatingSystem } from 'vscode/vscode/vs/base/common/platform';
|
|
7
|
-
import { BaseResolvedKeybinding } from 'vscode/vscode/vs/platform/keybinding/common/baseResolvedKeybinding';
|
|
8
|
-
import { toEmptyArrayIfContainsNull } from 'vscode/vscode/vs/platform/keybinding/common/resolvedKeybindingItem';
|
|
2
|
+
import { CharCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/charCode';
|
|
3
|
+
import { KeyCodeUtils, KeyCode, ScanCode, IMMUTABLE_CODE_TO_KEY_CODE, ScanCodeUtils, NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
4
|
+
import { ScanCodeChord, KeyCodeChord } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keybindings';
|
|
5
|
+
import { UILabelProvider } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keybindingLabels';
|
|
6
|
+
import { OperatingSystem } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
7
|
+
import { BaseResolvedKeybinding } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/baseResolvedKeybinding';
|
|
8
|
+
import { toEmptyArrayIfContainsNull } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/resolvedKeybindingItem';
|
|
9
9
|
|
|
10
10
|
class WindowsNativeResolvedKeybinding extends BaseResolvedKeybinding {
|
|
11
11
|
constructor(mapper, chords) {
|