commit in buildable state
This commit is contained in:
parent
9a97289dc7
commit
e0efe28b2a
File diff suppressed because it is too large
Load diff
|
@ -333,11 +333,11 @@ export class Workbench extends Layout {
|
|||
[
|
||||
{ id: Parts.TITLEBAR_PART, role: 'contentinfo', classes: ['titlebar'] },
|
||||
{ id: Parts.BANNER_PART, role: 'banner', classes: ['banner'] },
|
||||
{ id: Parts.ACTIVITYBAR_PART, role: 'none', classes: ['activitybar', this.state.sideBar.position === Position.LEFT ? 'left' : 'right'] }, // Use role 'none' for some parts to make screen readers less chatty #114892
|
||||
{ id: Parts.SIDEBAR_PART, role: 'none', classes: ['sidebar', this.state.sideBar.position === Position.LEFT ? 'left' : 'right'] },
|
||||
{ id: Parts.EDITOR_PART, role: 'main', classes: ['editor'], options: { restorePreviousState: this.state.editor.restoreEditors } },
|
||||
{ id: Parts.PANEL_PART, role: 'none', classes: ['panel', 'basepanel', positionToString(this.state.panel.position)] },
|
||||
{ id: Parts.AUXILIARYBAR_PART, role: 'none', classes: ['auxiliarybar', 'basepanel', this.state.sideBar.position === Position.LEFT ? 'right' : 'left'] },
|
||||
{ id: Parts.ACTIVITYBAR_PART, role: 'none', classes: ['activitybar', this.getSideBarPosition() === Position.LEFT ? 'left' : 'right'] }, // Use role 'none' for some parts to make screen readers less chatty #114892
|
||||
{ id: Parts.SIDEBAR_PART, role: 'none', classes: ['sidebar', this.getSideBarPosition() === Position.LEFT ? 'left' : 'right'] },
|
||||
{ id: Parts.EDITOR_PART, role: 'main', classes: ['editor'], options: { restorePreviousState: this.willRestoreEditors() } },
|
||||
{ id: Parts.PANEL_PART, role: 'none', classes: ['panel', 'basepanel', positionToString(this.getPanelPosition())] },
|
||||
{ id: Parts.AUXILIARYBAR_PART, role: 'none', classes: ['auxiliarybar', 'basepanel', this.getSideBarPosition() === Position.LEFT ? 'right' : 'left'] },
|
||||
{ id: Parts.STATUSBAR_PART, role: 'status', classes: ['statusbar'] }
|
||||
].forEach(({ id, role, classes, options }) => {
|
||||
const partContainer = this.createPart(id, role, classes);
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
import { refineServiceDecorator } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { Event } from 'vs/base/common/event';
|
||||
import { MenuBarVisibility } from 'vs/platform/windows/common/windows';
|
||||
import { ILayoutService } from 'vs/platform/layout/browser/layoutService';
|
||||
import { Part } from 'vs/workbench/browser/part';
|
||||
import { Dimension } from 'vs/base/browser/dom';
|
||||
|
@ -36,6 +35,8 @@ export const enum PanelOpensMaximizedOptions {
|
|||
REMEMBER_LAST
|
||||
}
|
||||
|
||||
export type PanelAlignment = 'left' | 'center' | 'right' | 'justified';
|
||||
|
||||
export function positionToString(position: Position): string {
|
||||
switch (position) {
|
||||
case Position.LEFT: return 'left';
|
||||
|
@ -195,11 +196,6 @@ export interface IWorkbenchLayoutService extends ILayoutService {
|
|||
*/
|
||||
getSideBarPosition(): Position;
|
||||
|
||||
/**
|
||||
* Gets the current menubar visibility.
|
||||
*/
|
||||
getMenubarVisibility(): MenuBarVisibility;
|
||||
|
||||
/**
|
||||
* Toggles the menu bar visibility.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue