Skip to content

Commit 00f7474

Browse files
committed
Remove const declarations
1 parent f7349ba commit 00f7474

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/vs/workbench/browser/layout.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,6 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
701701
// change part size along the main axis
702702
public resizePart(part: Parts, sizeChange: number): void {
703703
const visibleEditorCount = this.editorService.getVisibleEditors().length;
704-
const isSidebarVisible = this.partService.isVisible(Parts.SIDEBAR_PART);
705-
const isPanelVisible = this.partService.isVisible(Parts.PANEL_PART);
706704
const panelPosition = this.partService.getPanelPosition();
707705
const sizeChangePxWidth = this.workbenchSize.width * (sizeChange / 100);
708706
const sizeChangePxHeight = this.workbenchSize.height * (sizeChange / 100);
@@ -732,10 +730,10 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
732730
// If we have one editor we can cheat and resize sidebar with the negative delta
733731
// If the sidebar is not visible and panel is, resize panel main axis with negative Delta
734732
if (visibleEditorCount === 1) {
735-
if (isSidebarVisible) {
733+
if (this.partService.isVisible(Parts.SIDEBAR_PART)) {
736734
this.sidebarWidth = this.sidebarWidth - sizeChangePxWidth;
737735
doLayout = true;
738-
} else if (isPanelVisible) {
736+
} else if (this.partService.isVisible(Parts.PANEL_PART)) {
739737
if (panelPosition === Position.BOTTOM) {
740738
this.panelHeight = this.panelHeight - sizeChangePxHeight;
741739
} else if (panelPosition === Position.RIGHT) {

0 commit comments

Comments
 (0)