Skip to content

Commit 95e0f54

Browse files
authored
improve conditional for persistent tasks (microsoft#158928)
fix microsoft#158790
1 parent 3df9bc8 commit 95e0f54

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,11 +1120,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
11201120
key = customized[configuration].getRecentlyUsedKey()!;
11211121
}
11221122
}
1123-
// isBackground is still false at this pt bc problem matchers
1124-
// for contributed tasks get attached later
1125-
// they're set to [] for this case,
1126-
// so checking if they're defined is sufficient
1127-
if (!task.configurationProperties.problemMatchers) {
1123+
if (!task.configurationProperties.isBackground) {
11281124
return;
11291125
}
11301126
this._getTasksFromStorage('persistent').set(key, JSON.stringify(customizations));

0 commit comments

Comments
 (0)