diff --git a/packages/plugin-ext/src/common/plugin-protocol.ts b/packages/plugin-ext/src/common/plugin-protocol.ts index 2c1b7f7f179bb..a7afcf34963ab 100644 --- a/packages/plugin-ext/src/common/plugin-protocol.ts +++ b/packages/plugin-ext/src/common/plugin-protocol.ts @@ -154,6 +154,8 @@ export interface PluginPackageKeybinding { mac?: string; linux?: string; win?: string; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + args?: any; } export interface PluginPackageGrammarsContribution { @@ -706,6 +708,8 @@ export interface Keybinding { mac?: string; linux?: string; win?: string; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + args?: any; } /** diff --git a/packages/plugin-ext/src/hosted/node/scanners/scanner-theia.ts b/packages/plugin-ext/src/hosted/node/scanners/scanner-theia.ts index c97f268f0cdd7..8c7187d42dbfa 100644 --- a/packages/plugin-ext/src/hosted/node/scanners/scanner-theia.ts +++ b/packages/plugin-ext/src/hosted/node/scanners/scanner-theia.ts @@ -492,7 +492,8 @@ export class TheiaPluginScanner implements PluginScanner { when: rawKeybinding.when, mac: rawKeybinding.mac, linux: rawKeybinding.linux, - win: rawKeybinding.win + win: rawKeybinding.win, + args: rawKeybinding.args }; } diff --git a/packages/plugin-ext/src/main/browser/keybindings/keybindings-contribution-handler.ts b/packages/plugin-ext/src/main/browser/keybindings/keybindings-contribution-handler.ts index 70c818d091380..8ce2a7174feff 100644 --- a/packages/plugin-ext/src/main/browser/keybindings/keybindings-contribution-handler.ts +++ b/packages/plugin-ext/src/main/browser/keybindings/keybindings-contribution-handler.ts @@ -47,8 +47,8 @@ export class KeybindingsContributionPointHandler { if (!keybinding) { return undefined; } - const { command, when } = pluginKeybinding; - return { keybinding, command, when }; + const { command, when, args } = pluginKeybinding; + return { keybinding, command, when, args }; } protected toOSKeybinding(pluginKeybinding: PluginKeybinding): string | undefined {