File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/vs/workbench/contrib/remote/browser Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -583,6 +583,7 @@ class RemoteViewPaneContainer extends FilterViewPaneContainer implements IViewMo
583
583
private _onDidChangeHelpInformation = new Emitter < void > ( ) ;
584
584
public onDidChangeHelpInformation : Event < void > = this . _onDidChangeHelpInformation . event ;
585
585
private hasSetSwitchForConnection : boolean = false ;
586
+ private hasRegisteredHelpView : boolean = false ;
586
587
587
588
constructor (
588
589
@IWorkbenchLayoutService layoutService : IWorkbenchLayoutService ,
@@ -610,10 +611,12 @@ class RemoteViewPaneContainer extends FilterViewPaneContainer implements IViewMo
610
611
this . _onDidChangeHelpInformation . fire ( ) ;
611
612
612
613
const viewsRegistry = Registry . as < IViewsRegistry > ( Extensions . ViewsRegistry ) ;
613
- if ( this . helpInformation . length ) {
614
+ if ( this . helpInformation . length && ! this . hasRegisteredHelpView ) {
614
615
viewsRegistry . registerViews ( [ this . helpPanelDescriptor ] , this . viewContainer ) ;
615
- } else {
616
+ this . hasRegisteredHelpView = true ;
617
+ } else if ( this . hasRegisteredHelpView ) {
616
618
viewsRegistry . deregisterViews ( [ this . helpPanelDescriptor ] , this . viewContainer ) ;
619
+ this . hasRegisteredHelpView = false ;
617
620
}
618
621
} ) ;
619
622
}
You can’t perform that action at this time.
0 commit comments