mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-11 23:40:34 -05:00
@@ -269,7 +269,7 @@ export abstract class BasePanelPart extends CompositePart<PaneComposite> impleme
|
||||
|
||||
if (activeContainers.length) {
|
||||
if (this.getActivePaneComposite()?.getId() === panelId) {
|
||||
const defaultPanelId = this.viewDescriptorService.getDefaultViewContainer(this.viewContainerLocation)!.id;
|
||||
const defaultPanelId = this.viewDescriptorService.getDefaultViewContainer(this.viewContainerLocation)?.id;
|
||||
const containerToOpen = activeContainers.filter(c => c.id === defaultPanelId)[0] || activeContainers[0];
|
||||
await this.openPaneComposite(containerToOpen.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user