Skip to content

Commit ecf3aaf

Browse files
committed
1 parent 074257c commit ecf3aaf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/vs/workbench/contrib/debug/browser/debugStatus.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class DebugStatus extends Themable implements IStatusbarItem {
2121
private statusBarItem: HTMLElement;
2222
private label: HTMLElement;
2323
private icon: HTMLElement;
24-
private showInStatusBar: string;
24+
private showInStatusBar: 'never' | 'always' | 'onFirstSessionStart';
2525

2626
constructor(
2727
@IQuickOpenService private readonly quickOpenService: IQuickOpenService,
@@ -36,6 +36,10 @@ export class DebugStatus extends Themable implements IStatusbarItem {
3636
this._register(this.debugService.onDidChangeState(state => {
3737
if (state !== State.Inactive && this.showInStatusBar === 'onFirstSessionStart') {
3838
this.doRender();
39+
} else {
40+
if (this.showInStatusBar !== 'never') {
41+
this.updateStyles();
42+
}
3943
}
4044
}));
4145
this.showInStatusBar = configurationService.getValue<IDebugConfiguration>('debug').showInStatusBar;
@@ -53,7 +57,6 @@ export class DebugStatus extends Themable implements IStatusbarItem {
5357
}
5458

5559
protected updateStyles(): void {
56-
super.updateStyles();
5760
if (this.icon) {
5861
if (isStatusbarInDebugMode(this.debugService)) {
5962
this.icon.style.backgroundColor = this.getColor(STATUS_BAR_DEBUGGING_FOREGROUND);

0 commit comments

Comments
 (0)