Skip to content

Commit

Permalink
Task spinner not showing in the status bar (#130050)
Browse files Browse the repository at this point in the history
Fixes #130048
  • Loading branch information
alexr00 authored Aug 3, 2021
1 parent ff43f8b commit cead2f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/workbench/contrib/tasks/browser/task.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { TasksQuickAccessProvider } from 'vs/workbench/contrib/tasks/browser/tas
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
import { TaskDefinitionRegistry } from 'vs/workbench/contrib/tasks/common/taskDefinitionRegistry';
import { TerminalMenuBarGroup } from 'vs/workbench/contrib/terminal/browser/terminalMenus';
import { isString } from 'vs/base/common/types';

const SHOW_TASKS_COMMANDS_CONTEXT = ContextKeyExpr.or(ShellExecutionSupportedContext, ProcessExecutionSupportedContext);

Expand Down Expand Up @@ -150,7 +151,7 @@ export class TaskStatusBarContributions extends Disposable implements IWorkbench
return false;
}

if (event.group !== TaskGroup.Build) {
if ((isString(event.group) ? event.group : event.group?._id) !== TaskGroup.Build._id) {
return true;
}

Expand Down

0 comments on commit cead2f6

Please sign in to comment.