Skip to content

Commit 880811b

Browse files
authored
Tasks from Run Build Task and Run Test Task should be recently used (#104800)
part of #104714
1 parent a225ab1 commit 880811b

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
@@ -2606,7 +2606,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26062606
}
26072607
if (buildTasks.length === 1) {
26082608
this.tryResolveTask(buildTasks[0]).then(resolvedTask => {
2609-
this.run(resolvedTask).then(undefined, reason => {
2609+
this.run(resolvedTask, undefined, TaskRunSource.User).then(undefined, reason => {
26102610
// eat the error, it has already been surfaced to the user and we don't care about it here
26112611
});
26122612
});
@@ -2617,7 +2617,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26172617
if (tasks.length > 0) {
26182618
let { defaults, users } = this.splitPerGroupType(tasks);
26192619
if (defaults.length === 1) {
2620-
this.run(defaults[0]).then(undefined, reason => {
2620+
this.run(defaults[0], undefined, TaskRunSource.User).then(undefined, reason => {
26212621
// eat the error, it has already been surfaced to the user and we don't care about it here
26222622
});
26232623
return;
@@ -2641,7 +2641,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26412641
this.runConfigureDefaultBuildTask();
26422642
return;
26432643
}
2644-
this.run(task, { attachProblemMatcher: true }).then(undefined, reason => {
2644+
this.run(task, { attachProblemMatcher: true }, TaskRunSource.User).then(undefined, reason => {
26452645
// eat the error, it has already been surfaced to the user and we don't care about it here
26462646
});
26472647
});
@@ -2667,7 +2667,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26672667
if (tasks.length > 0) {
26682668
let { defaults, users } = this.splitPerGroupType(tasks);
26692669
if (defaults.length === 1) {
2670-
this.run(defaults[0]).then(undefined, reason => {
2670+
this.run(defaults[0], undefined, TaskRunSource.User).then(undefined, reason => {
26712671
// eat the error, it has already been surfaced to the user and we don't care about it here
26722672
});
26732673
return;
@@ -2691,7 +2691,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26912691
this.runConfigureTasks();
26922692
return;
26932693
}
2694-
this.run(task).then(undefined, reason => {
2694+
this.run(task, undefined, TaskRunSource.User).then(undefined, reason => {
26952695
// eat the error, it has already been surfaced to the user and we don't care about it here
26962696
});
26972697
});

0 commit comments

Comments
 (0)