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
583583 private _onDidChangeHelpInformation = new Emitter < void > ( ) ;
584584 public onDidChangeHelpInformation : Event < void > = this . _onDidChangeHelpInformation . event ;
585585 private hasSetSwitchForConnection : boolean = false ;
586+ private hasRegisteredHelpView : boolean = false ;
586587
587588 constructor (
588589 @IWorkbenchLayoutService layoutService : IWorkbenchLayoutService ,
@@ -610,10 +611,12 @@ class RemoteViewPaneContainer extends FilterViewPaneContainer implements IViewMo
610611 this . _onDidChangeHelpInformation . fire ( ) ;
611612
612613 const viewsRegistry = Registry . as < IViewsRegistry > ( Extensions . ViewsRegistry ) ;
613- if ( this . helpInformation . length ) {
614+ if ( this . helpInformation . length && ! this . hasRegisteredHelpView ) {
614615 viewsRegistry . registerViews ( [ this . helpPanelDescriptor ] , this . viewContainer ) ;
615- } else {
616+ this . hasRegisteredHelpView = true ;
617+ } else if ( this . hasRegisteredHelpView ) {
616618 viewsRegistry . deregisterViews ( [ this . helpPanelDescriptor ] , this . viewContainer ) ;
619+ this . hasRegisteredHelpView = false ;
617620 }
618621 } ) ;
619622 }
You can’t perform that action at this time.
0 commit comments