File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/debug/browser Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments