@theia/keymaps 1.45.1 → 1.46.0-next.72
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/README.md +61 -61
- package/lib/browser/index.d.ts +3 -3
- package/lib/browser/index.js +30 -30
- package/lib/browser/keybinding-schema-updater.d.ts +85 -85
- package/lib/browser/keybinding-schema-updater.js +116 -116
- package/lib/browser/keybindings-widget.d.ts +275 -275
- package/lib/browser/keybindings-widget.js +824 -824
- package/lib/browser/keymaps-frontend-contribution.d.ts +37 -37
- package/lib/browser/keymaps-frontend-contribution.js +294 -294
- package/lib/browser/keymaps-frontend-module.d.ts +5 -5
- package/lib/browser/keymaps-frontend-module.js +44 -44
- package/lib/browser/keymaps-monaco-contribution.d.ts +1 -1
- package/lib/browser/keymaps-monaco-contribution.js +27 -27
- package/lib/browser/keymaps-service.d.ts +61 -61
- package/lib/browser/keymaps-service.js +231 -231
- package/lib/package.spec.js +25 -25
- package/package.json +8 -8
- package/src/browser/index.ts +19 -19
- package/src/browser/keybinding-schema-updater.ts +95 -95
- package/src/browser/keybindings-widget.tsx +953 -953
- package/src/browser/keymaps-frontend-contribution.ts +296 -296
- package/src/browser/keymaps-frontend-module.ts +44 -44
- package/src/browser/keymaps-monaco-contribution.ts +26 -26
- package/src/browser/keymaps-service.ts +214 -214
- package/src/browser/style/index.css +182 -182
- package/src/package.spec.ts +28 -28
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { CommandContribution, Command, CommandRegistry, MenuContribution, MenuModelRegistry } from '@theia/core/lib/common';
|
|
2
|
-
import { AbstractViewContribution, Widget } from '@theia/core/lib/browser';
|
|
3
|
-
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
|
|
4
|
-
import { KeymapsService } from './keymaps-service';
|
|
5
|
-
import { KeybindingRegistry } from '@theia/core/lib/browser/keybinding';
|
|
6
|
-
import { KeybindingItem, KeybindingWidget } from './keybindings-widget';
|
|
7
|
-
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
8
|
-
export declare namespace KeymapsCommands {
|
|
9
|
-
const OPEN_KEYMAPS: Command;
|
|
10
|
-
const OPEN_KEYMAPS_JSON: Command;
|
|
11
|
-
const OPEN_KEYMAPS_JSON_TOOLBAR: Command;
|
|
12
|
-
const CLEAR_KEYBINDINGS_SEARCH: Command;
|
|
13
|
-
const COPY_KEYBINDING: Command;
|
|
14
|
-
const COPY_COMMAND_ID: Command;
|
|
15
|
-
const COPY_COMMAND_TITLE: Command;
|
|
16
|
-
const EDIT_KEYBINDING: Command;
|
|
17
|
-
const EDIT_WHEN_EXPRESSION: Command;
|
|
18
|
-
const ADD_KEYBINDING: Command;
|
|
19
|
-
const REMOVE_KEYBINDING: Command;
|
|
20
|
-
const RESET_KEYBINDING: Command;
|
|
21
|
-
const SHOW_SAME: Command;
|
|
22
|
-
}
|
|
23
|
-
export declare class KeymapsFrontendContribution extends AbstractViewContribution<KeybindingWidget> implements CommandContribution, MenuContribution, TabBarToolbarContribution {
|
|
24
|
-
protected readonly keymaps: KeymapsService;
|
|
25
|
-
protected readonly clipboard: ClipboardService;
|
|
26
|
-
constructor();
|
|
27
|
-
registerCommands(commands: CommandRegistry): void;
|
|
28
|
-
registerMenus(menus: MenuModelRegistry): void;
|
|
29
|
-
registerKeybindings(keybindings: KeybindingRegistry): void;
|
|
30
|
-
registerToolbarItems(toolbar: TabBarToolbarRegistry): Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* Determine if the current widget is the keybindings widget.
|
|
33
|
-
*/
|
|
34
|
-
protected withWidget<T>(widget: Widget | undefined, fn: (widget: KeybindingWidget) => T): T | false;
|
|
35
|
-
protected withItem<T>(fn: (item: KeybindingItem, ...rest: unknown[]) => T, ...args: unknown[]): T | false;
|
|
36
|
-
protected withWidgetItem<T>(fn: (item: KeybindingItem, widget: KeybindingWidget, ...rest: unknown[]) => T, ...args: unknown[]): T | false;
|
|
37
|
-
}
|
|
1
|
+
import { CommandContribution, Command, CommandRegistry, MenuContribution, MenuModelRegistry } from '@theia/core/lib/common';
|
|
2
|
+
import { AbstractViewContribution, Widget } from '@theia/core/lib/browser';
|
|
3
|
+
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
|
|
4
|
+
import { KeymapsService } from './keymaps-service';
|
|
5
|
+
import { KeybindingRegistry } from '@theia/core/lib/browser/keybinding';
|
|
6
|
+
import { KeybindingItem, KeybindingWidget } from './keybindings-widget';
|
|
7
|
+
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
8
|
+
export declare namespace KeymapsCommands {
|
|
9
|
+
const OPEN_KEYMAPS: Command;
|
|
10
|
+
const OPEN_KEYMAPS_JSON: Command;
|
|
11
|
+
const OPEN_KEYMAPS_JSON_TOOLBAR: Command;
|
|
12
|
+
const CLEAR_KEYBINDINGS_SEARCH: Command;
|
|
13
|
+
const COPY_KEYBINDING: Command;
|
|
14
|
+
const COPY_COMMAND_ID: Command;
|
|
15
|
+
const COPY_COMMAND_TITLE: Command;
|
|
16
|
+
const EDIT_KEYBINDING: Command;
|
|
17
|
+
const EDIT_WHEN_EXPRESSION: Command;
|
|
18
|
+
const ADD_KEYBINDING: Command;
|
|
19
|
+
const REMOVE_KEYBINDING: Command;
|
|
20
|
+
const RESET_KEYBINDING: Command;
|
|
21
|
+
const SHOW_SAME: Command;
|
|
22
|
+
}
|
|
23
|
+
export declare class KeymapsFrontendContribution extends AbstractViewContribution<KeybindingWidget> implements CommandContribution, MenuContribution, TabBarToolbarContribution {
|
|
24
|
+
protected readonly keymaps: KeymapsService;
|
|
25
|
+
protected readonly clipboard: ClipboardService;
|
|
26
|
+
constructor();
|
|
27
|
+
registerCommands(commands: CommandRegistry): void;
|
|
28
|
+
registerMenus(menus: MenuModelRegistry): void;
|
|
29
|
+
registerKeybindings(keybindings: KeybindingRegistry): void;
|
|
30
|
+
registerToolbarItems(toolbar: TabBarToolbarRegistry): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Determine if the current widget is the keybindings widget.
|
|
33
|
+
*/
|
|
34
|
+
protected withWidget<T>(widget: Widget | undefined, fn: (widget: KeybindingWidget) => T): T | false;
|
|
35
|
+
protected withItem<T>(fn: (item: KeybindingItem, ...rest: unknown[]) => T, ...args: unknown[]): T | false;
|
|
36
|
+
protected withWidgetItem<T>(fn: (item: KeybindingItem, widget: KeybindingWidget, ...rest: unknown[]) => T, ...args: unknown[]): T | false;
|
|
37
|
+
}
|
|
38
38
|
//# sourceMappingURL=keymaps-frontend-contribution.d.ts.map
|