File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/vs/workbench/browser/parts/panel Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -427,18 +427,20 @@ export abstract class BasePanelPart extends CompositePart<PaneComposite> impleme
427
427
428
428
private onDidRegisterExtensions ( ) : void {
429
429
this . extensionsRegistered = true ;
430
- this . removeNotExistingComposites ( ) ;
431
430
432
- this . saveCachedPanels ( ) ;
433
- }
434
-
435
- private removeNotExistingComposites ( ) : void {
431
+ // hide/remove composites
436
432
const panels = this . getPaneComposites ( ) ;
437
- for ( const { id } of this . getCachedPanels ( ) ) { // should this value match viewlet (load on ctor)
433
+ for ( const { id } of this . getCachedPanels ( ) ) {
438
434
if ( panels . every ( panel => panel . id !== id ) ) {
439
- this . hideComposite ( id ) ;
435
+ if ( this . viewDescriptorService . isViewContainerRemovedPermanently ( id ) ) {
436
+ this . removeComposite ( id ) ;
437
+ } else {
438
+ this . hideComposite ( id ) ;
439
+ }
440
440
}
441
441
}
442
+
443
+ this . saveCachedPanels ( ) ;
442
444
}
443
445
444
446
private hideComposite ( compositeId : string ) : void {
You can’t perform that action at this time.
0 commit comments