From 3e1c84cdec2f4eec0f3ef7b6bc669f8c25bbbc1d Mon Sep 17 00:00:00 2001 From: Miguel Solorio Date: Wed, 23 Oct 2019 09:38:34 -0700 Subject: [PATCH] Add todo --- src/vs/workbench/browser/parts/compositeBarActions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/browser/parts/compositeBarActions.ts b/src/vs/workbench/browser/parts/compositeBarActions.ts index 9fbfee9c6b4..cfcbbf171b1 100644 --- a/src/vs/workbench/browser/parts/compositeBarActions.ts +++ b/src/vs/workbench/browser/parts/compositeBarActions.ts @@ -158,6 +158,7 @@ export class ActivityActionViewItem extends BaseActionViewItem { if (this.label) { if (this.options.icon) { const foreground = this._action.checked ? colors.activeBackgroundColor || colors.activeForegroundColor : colors.inactiveBackgroundColor || colors.inactiveForegroundColor; + // TODO @misolori find a cleaner way to do this const isExtension = this.activity.cssClass?.indexOf('extensionViewlet') === 0; if (!isExtension) { // Apply foreground color to activity bar items (codicons) @@ -318,6 +319,7 @@ export class ActivityActionViewItem extends BaseActionViewItem { this.label.className = 'action-label'; if (this.activity.cssClass) { + // TODO @misolori find a cleaner way to do this const isExtension = this.activity.cssClass?.indexOf('extensionViewlet') === 0; if (this.options.icon && !isExtension) { // Only apply icon class to activity bar items (exclude extensions + remote explorer)