MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / hasViews

Function hasViews

packages/vscode-host/src/src/vs/workbench/browser/layout.ts:1578–1590  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1576 }
1577
1578 private hasViews(id: string): boolean {
1579 const viewContainer = this.viewDescriptorService.getViewContainerById(id);
1580 if (!viewContainer) {
1581 return false;
1582 }
1583
1584 const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
1585 if (!viewContainerModel) {
1586 return false;
1587 }
1588
1589 return viewContainerModel.activeViewDescriptors.length >= 1;
1590 }
1591
1592 private adjustPartPositions(sideBarPosition: Position, panelAlignment: PanelAlignment, panelPosition: Position): void {
1593

Callers

nothing calls this directly

Calls 2

getViewContainerByIdMethod · 0.80
getViewContainerModelMethod · 0.80

Tested by

no test coverage detected