Skip to content

Commit 0e70726

Browse files
author
Benjamin Pasero
committed
actions - remove some unused event/context from run()
1 parent 210263b commit 0e70726

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/vs/base/browser/ui/tree/treeDefaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class CollapseAllAction<TInput, T, TFilterData = void> extends Action {
1313
super('vs.tree.collapse', nls.localize('collapse all', "Collapse All"), 'collapse-all', enabled);
1414
}
1515

16-
async run(context?: any): Promise<any> {
16+
async run(): Promise<any> {
1717
this.viewer.collapseAll();
1818
this.viewer.setSelection([]);
1919
this.viewer.setFocus([]);

src/vs/workbench/contrib/localizations/browser/localizationsActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ConfigureLocaleAction extends Action {
4646
.concat({ label: localize('installAdditionalLanguages', "Install additional languages...") });
4747
}
4848

49-
public async run(event?: any): Promise<void> {
49+
public async run(): Promise<void> {
5050
const languageOptions = await this.getLanguageOptions();
5151
const currentLanguageIndex = firstIndex(languageOptions, l => l.label === language);
5252

src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class ManageAutomaticTaskRunning extends Action {
145145
super(id, label);
146146
}
147147

148-
public async run(event?: any): Promise<any> {
148+
public async run(): Promise<any> {
149149
const allowItem: IQuickPickItem = { label: nls.localize('workbench.action.tasks.allowAutomaticTasks', "Allow Automatic Tasks in Folder") };
150150
const disallowItem: IQuickPickItem = { label: nls.localize('workbench.action.tasks.disallowAutomaticTasks', "Disallow Automatic Tasks in Folder") };
151151
const value = await this.quickInputService.pick([allowItem, disallowItem], { canPickMany: false });

src/vs/workbench/contrib/terminal/browser/terminalActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export class SplitTerminalAction extends Action {
236236
super(id, label, SplitTerminalAction.HORIZONTAL_CLASS);
237237
}
238238

239-
public async run(event?: any): Promise<any> {
239+
public async run(): Promise<any> {
240240
await this._terminalService.doWithActiveInstance(async t => {
241241
const cwd = await getCwdForSplit(this._terminalService.configHelper, t, this._workspaceContextService.getWorkspace().folders, this._commandService);
242242
if (cwd === undefined) {

src/vs/workbench/contrib/terminal/electron-browser/terminalRemote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class CreateNewLocalTerminalAction extends Action {
2929
super(id, label);
3030
}
3131

32-
public run(event?: any): Promise<any> {
32+
public run(): Promise<any> {
3333
const instance = this.terminalService.createTerminal({ cwd: URI.file(homedir()) });
3434
if (!instance) {
3535
return Promise.resolve(undefined);

0 commit comments

Comments
 (0)