提交 0e70726b 编写于 作者: B Benjamin Pasero

actions - remove some unused event/context from run()

上级 210263b1
......@@ -13,7 +13,7 @@ export class CollapseAllAction<TInput, T, TFilterData = void> extends Action {
super('vs.tree.collapse', nls.localize('collapse all', "Collapse All"), 'collapse-all', enabled);
}
async run(context?: any): Promise<any> {
async run(): Promise<any> {
this.viewer.collapseAll();
this.viewer.setSelection([]);
this.viewer.setFocus([]);
......
......@@ -46,7 +46,7 @@ export class ConfigureLocaleAction extends Action {
.concat({ label: localize('installAdditionalLanguages', "Install additional languages...") });
}
public async run(event?: any): Promise<void> {
public async run(): Promise<void> {
const languageOptions = await this.getLanguageOptions();
const currentLanguageIndex = firstIndex(languageOptions, l => l.label === language);
......
......@@ -145,7 +145,7 @@ export class ManageAutomaticTaskRunning extends Action {
super(id, label);
}
public async run(event?: any): Promise<any> {
public async run(): Promise<any> {
const allowItem: IQuickPickItem = { label: nls.localize('workbench.action.tasks.allowAutomaticTasks', "Allow Automatic Tasks in Folder") };
const disallowItem: IQuickPickItem = { label: nls.localize('workbench.action.tasks.disallowAutomaticTasks', "Disallow Automatic Tasks in Folder") };
const value = await this.quickInputService.pick([allowItem, disallowItem], { canPickMany: false });
......
......@@ -236,7 +236,7 @@ export class SplitTerminalAction extends Action {
super(id, label, SplitTerminalAction.HORIZONTAL_CLASS);
}
public async run(event?: any): Promise<any> {
public async run(): Promise<any> {
await this._terminalService.doWithActiveInstance(async t => {
const cwd = await getCwdForSplit(this._terminalService.configHelper, t, this._workspaceContextService.getWorkspace().folders, this._commandService);
if (cwd === undefined) {
......
......@@ -29,7 +29,7 @@ export class CreateNewLocalTerminalAction extends Action {
super(id, label);
}
public run(event?: any): Promise<any> {
public run(): Promise<any> {
const instance = this.terminalService.createTerminal({ cwd: URI.file(homedir()) });
if (!instance) {
return Promise.resolve(undefined);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册