use affectsConfiguration for tasks (#170989)

This commit is contained in:
Megan Rogge 2023-01-11 06:29:22 -08:00 committed by GitHub
parent 85e992bffa
commit 6c06876a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -284,8 +284,8 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
this._updateSetup(folderSetup);
return this._updateWorkspaceTasks(TaskRunSource.FolderOpen);
}));
this._register(this._configurationService.onDidChangeConfiguration(() => {
if (!this._taskSystem && !this._workspaceTasksPromise) {
this._register(this._configurationService.onDidChangeConfiguration((e) => {
if (!e.affectsConfiguration('tasks') || (!this._taskSystem && !this._workspaceTasksPromise)) {
return;
}