diff --git a/packages/plugin-ext/src/plugin/known-commands.ts b/packages/plugin-ext/src/plugin/known-commands.ts index f6d7d8d6bb918..7f7c61fe041f5 100755 --- a/packages/plugin-ext/src/plugin/known-commands.ts +++ b/packages/plugin-ext/src/plugin/known-commands.ts @@ -66,7 +66,7 @@ export namespace KnownCommands { }; // eslint-disable-next-line @typescript-eslint/no-explicit-any - const ID = (args: any[]) => args; + const identity = (args: any[]) => args; mappings['editor.action.select.all'] = ['editor.action.select.all', CONVERT_VSCODE_TO_MONACO]; mappings['editor.action.toggleHighContrast'] = ['editor.action.toggleHighContrast', CONVERT_VSCODE_TO_MONACO]; @@ -308,15 +308,15 @@ export namespace KnownCommands { mappings['vscode.diff'] = ['vscode.diff', CONVERT_VSCODE_TO_MONACO]; // terminal commands - mappings['workbench.action.terminal.new'] = ['terminal:new', ID]; - mappings['workbench.action.terminal.newWithProfile'] = ['terminal:new:profile', ID]; - mappings['workbench.action.terminal.selectDefaultShell'] = ['terminal:profile:default', ID]; - mappings['workbench.action.terminal.newInActiveWorkspace'] = ['terminal:new:active:workspace', ID]; - mappings['workbench.action.terminal.clear'] = ['terminal:clear', ID]; + mappings['workbench.action.terminal.new'] = ['terminal:new', identity]; + mappings['workbench.action.terminal.newWithProfile'] = ['terminal:new:profile', identity]; + mappings['workbench.action.terminal.selectDefaultShell'] = ['terminal:profile:default', identity]; + mappings['workbench.action.terminal.newInActiveWorkspace'] = ['terminal:new:active:workspace', identity]; + mappings['workbench.action.terminal.clear'] = ['terminal:clear', identity]; mappings['openInTerminal'] = ['terminal:context', createConversionFunction((uri: URI) => new TheiaURI(uri))]; - mappings['workbench.action.terminal.split'] = ['terminal:split', ID]; - mappings['workbench.action.terminal.focusFind'] = ['terminal:find', ID]; - mappings['workbench.action.terminal.hideFind'] = ['terminal:find:cancel', ID]; + mappings['workbench.action.terminal.split'] = ['terminal:split', identity]; + mappings['workbench.action.terminal.focusFind'] = ['terminal:find', identity]; + mappings['workbench.action.terminal.hideFind'] = ['terminal:find:cancel', identity]; // eslint-disable-next-line @typescript-eslint/no-explicit-any export function map(id: string, args: any[] | undefined, toDo: (mappedId: string, mappedArgs: any[] | undefined, mappedResult: ConversionFunction | undefined) => T): T {