Skip to content

Commit 33a08dc

Browse files
authored
use task instead of taskName (microsoft#156603)
fix microsoft#155635
1 parent fb66467 commit 33a08dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
398398
type: 'string',
399399
description: nls.localize('runTask.type', "The contributed task type")
400400
},
401-
taskName: {
401+
task: {
402402
type: 'string',
403-
description: nls.localize('runTask.taskName', "The task's label or a term to filter by")
403+
description: nls.localize('runTask.task', "The task's label or a term to filter by")
404404
}
405405
}
406406
}
@@ -2700,16 +2700,16 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
27002700
})) === true;
27012701
}
27022702

2703-
private async _runTaskCommand(filter?: { type?: string; taskName?: string } | string): Promise<void> {
2703+
private async _runTaskCommand(filter?: any | { type?: string; task?: string }): Promise<void> {
27042704
if (!this._canRunCommand()) {
27052705
return;
27062706
}
27072707

27082708
let typeFilter: boolean = false;
27092709
if (filter && typeof filter !== 'string') {
27102710
// name takes precedence
2711-
typeFilter = !filter?.taskName && !!filter?.type;
2712-
filter = filter?.taskName || filter?.type;
2711+
typeFilter = !filter?.task && !!filter?.type;
2712+
filter = filter?.task || filter?.type;
27132713
}
27142714

27152715
const taskIdentifier: KeyedTaskIdentifier | undefined | string = this._getTaskIdentifier(filter);

0 commit comments

Comments
 (0)