improve conditional for persistent tasks (#158928)

fix #158790
This commit is contained in:
Megan Rogge 2022-08-23 13:05:28 -07:00 committed by GitHub
parent 3df9bc8301
commit 95e0f54ec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1120,11 +1120,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
key = customized[configuration].getRecentlyUsedKey()!;
}
}
// isBackground is still false at this pt bc problem matchers
// for contributed tasks get attached later
// they're set to [] for this case,
// so checking if they're defined is sufficient
if (!task.configurationProperties.problemMatchers) {
if (!task.configurationProperties.isBackground) {
return;
}
this._getTasksFromStorage('persistent').set(key, JSON.stringify(customizations));