Skip to content

Commit a46fb19

Browse files
fix microsoft#154064 which was running the wrong taskgroups (microsoft#164983)
1 parent 4bf630f commit a46fb19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2994,9 +2994,9 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
29942994
const relativePath = workspaceFolder?.uri ? (resources.relativePath(workspaceFolder.uri, absoluteURI) ?? absoluteURI.path) : absoluteURI.path;
29952995

29962996
taskGroupTasks = await this._findWorkspaceTasks((task) => {
2997-
const taskGroup = task.configurationProperties.group;
2998-
if (taskGroup && typeof taskGroup !== 'string' && typeof taskGroup.isDefault === 'string') {
2999-
return (taskGroup._id === taskGroup._id && glob.match(taskGroup.isDefault, relativePath));
2997+
const currentTaskGroup = task.configurationProperties.group;
2998+
if (currentTaskGroup && typeof currentTaskGroup !== 'string' && typeof currentTaskGroup.isDefault === 'string') {
2999+
return (currentTaskGroup._id === taskGroup._id && glob.match(currentTaskGroup.isDefault, relativePath));
30003000
}
30013001

30023002
return false;

0 commit comments

Comments
 (0)