Skip to content

Commit a3ee1bf

Browse files
authored
remember view containers that aren't registered yet (microsoft#153150)
fixes microsoft#149503 The comments panel was being registered later so by the time we went to save it back to the cache, we thought were removing it. Then, once it was registered, we would pin it since we thought it was new. Following, the behavior of the activity bar, we save it back to the cache as is.
1 parent 81113e2 commit a3ee1bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/browser/parts/panel/panelPart.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,8 @@ export abstract class BasePanelPart extends CompositePart<PaneComposite> impleme
823823
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
824824
state.push({ id: compositeItem.id, name: viewContainerModel.title, pinned: compositeItem.pinned, order: compositeItem.order, visible: compositeItem.visible });
825825
placeholders.push({ id: compositeItem.id, name: this.getCompositeActions(compositeItem.id).activityAction.label });
826+
} else {
827+
state.push({ id: compositeItem.id, name: compositeItem.name, pinned: compositeItem.pinned, order: compositeItem.order, visible: compositeItem.visible });
826828
}
827829
}
828830

0 commit comments

Comments
 (0)