Skip to content

Commit d3dbf56

Browse files
authored
Command inputs should be consistent with keybindings (microsoft#73034)
Fixes microsoft#72935
1 parent 0bb4cc3 commit d3dbf56

3 files changed

Lines changed: 17 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
306306
});
307307

308308
CommandsRegistry.registerCommand('workbench.action.tasks.reRunTask', (accessor, arg) => {
309-
this.reRunTaskCommand(arg);
309+
this.reRunTaskCommand();
310310
});
311311

312312
CommandsRegistry.registerCommand('workbench.action.tasks.restartTask', (accessor, arg) => {
@@ -1810,7 +1810,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
18101810
});
18111811
}
18121812

1813-
private reRunTaskCommand(arg?: any): void {
1813+
private reRunTaskCommand(): void {
18141814
if (!this.canRunCommand()) {
18151815
return;
18161816
}

src/vs/workbench/services/configurationResolver/common/configurationResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ export interface CommandInputInfo {
6060
args?: any;
6161
}
6262

63-
export type ConfiguredInput = PromptStringInputInfo | PickStringInputInfo | CommandInputInfo;
63+
export type ConfiguredInput = PromptStringInputInfo | PickStringInputInfo | CommandInputInfo;

src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,20 @@ export const inputsSchema: IJSONSchema = {
102102
description: nls.localize('JsonSchema.input.command.command', "The command to execute for this input variable.")
103103
},
104104
args: {
105-
type: 'object',
106-
description: nls.localize('JsonSchema.input.command.args', "Optional arguments passed to the command.")
105+
oneOf: [
106+
{
107+
type: 'object',
108+
description: nls.localize('JsonSchema.input.command.args', "Optional arguments passed to the command.")
109+
},
110+
{
111+
type: 'array',
112+
description: nls.localize('JsonSchema.input.command.args', "Optional arguments passed to the command.")
113+
},
114+
{
115+
type: 'string',
116+
description: nls.localize('JsonSchema.input.command.args', "Optional arguments passed to the command.")
117+
}
118+
]
107119
}
108120
}
109121
}

0 commit comments

Comments
 (0)