@@ -342,8 +342,8 @@ export abstract class ViewPane extends Pane implements IView {
342
342
343
343
readonly menuActions : ViewMenuActions ;
344
344
345
- private progressBar ! : ProgressBar ;
346
- private progressIndicator ! : IProgressIndicator ;
345
+ private progressBar ? : ProgressBar ;
346
+ private progressIndicator ? : IProgressIndicator ;
347
347
348
348
private toolbar ?: WorkbenchToolBar ;
349
349
private readonly showActions : ViewPaneShowActions ;
@@ -355,7 +355,7 @@ export abstract class ViewPane extends Pane implements IView {
355
355
private iconContainer ?: HTMLElement ;
356
356
private iconContainerHover ?: IManagedHover ;
357
357
protected twistiesContainer ?: HTMLElement ;
358
- private viewWelcomeController ! : ViewWelcomeController ;
358
+ private viewWelcomeController ? : ViewWelcomeController ;
359
359
360
360
private readonly headerActionViewItems : DisposableMap < string , IActionViewItem > = this . _register ( new DisposableMap ( ) ) ;
361
361
@@ -625,7 +625,7 @@ export abstract class ViewPane extends Pane implements IView {
625
625
}
626
626
627
627
protected layoutBody ( height : number , width : number ) : void {
628
- this . viewWelcomeController . layout ( height , width ) ;
628
+ this . viewWelcomeController ? .layout ( height , width ) ;
629
629
}
630
630
631
631
onDidScrollRoot ( ) {
@@ -634,7 +634,6 @@ export abstract class ViewPane extends Pane implements IView {
634
634
635
635
getProgressIndicator ( ) {
636
636
if ( this . progressBar === undefined ) {
637
- // Progress bar
638
637
this . progressBar = this . _register ( new ProgressBar ( this . element , defaultProgressBarStyles ) ) ;
639
638
this . progressBar . hide ( ) ;
640
639
}
@@ -660,7 +659,7 @@ export abstract class ViewPane extends Pane implements IView {
660
659
}
661
660
662
661
focus ( ) : void {
663
- if ( this . viewWelcomeController . enabled ) {
662
+ if ( this . viewWelcomeController ? .enabled ) {
664
663
this . viewWelcomeController . focus ( ) ;
665
664
} else if ( this . element ) {
666
665
this . element . focus ( ) ;
0 commit comments