mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode 8a997f7321ae6612fc0e6eb3eac4f358a6233bfb
This commit is contained in:
@@ -1265,6 +1265,35 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
|
||||
this._onMaximizeChange.fire(maximized);
|
||||
}
|
||||
|
||||
getVisibleNeighborPart(part: Parts, direction: Direction): Parts | undefined {
|
||||
if (!this.workbenchGrid) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (!this.isVisible(part)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const neighborViews = this.workbenchGrid.getNeighborViews(this.getPart(part), direction, false);
|
||||
|
||||
if (!neighborViews) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
for (const neighborView of neighborViews) {
|
||||
const neighborPart =
|
||||
[Parts.ACTIVITYBAR_PART, Parts.EDITOR_PART, Parts.PANEL_PART, Parts.SIDEBAR_PART, Parts.STATUSBAR_PART, Parts.TITLEBAR_PART]
|
||||
.find(partId => this.getPart(partId) === neighborView && this.isVisible(partId));
|
||||
|
||||
if (neighborPart !== undefined) {
|
||||
return neighborPart;
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
private arrangeEditorNodes(editorNode: ISerializedNode, panelNode: ISerializedNode, editorSectionWidth: number): ISerializedNode[] {
|
||||
switch (this.state.panel.position) {
|
||||
case Position.BOTTOM:
|
||||
|
||||
Reference in New Issue
Block a user