mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 2c306f762bf9c3db82dc06c7afaa56ef46d72f79 (#14050)
* Merge from vscode 2c306f762bf9c3db82dc06c7afaa56ef46d72f79 * Fix breaks * Extension management fixes * Fix breaks in windows bundling * Fix/skip failing tests * Update distro * Add clear to nuget.config * Add hygiene task * Bump distro * Fix hygiene issue * Add build to hygiene exclusion * Update distro * Update hygiene * Hygiene exclusions * Update tsconfig * Bump distro for server breaks * Update build config * Update darwin path * Add done calls to notebook tests * Skip failing tests * Disable smoke tests
This commit is contained in:
@@ -28,6 +28,12 @@ export const enum Position {
|
||||
BOTTOM
|
||||
}
|
||||
|
||||
export const enum PanelOpensMaximizedOptions {
|
||||
ALWAYS,
|
||||
NEVER,
|
||||
REMEMBER_LAST
|
||||
}
|
||||
|
||||
export function positionToString(position: Position): string {
|
||||
switch (position) {
|
||||
case Position.LEFT: return 'left';
|
||||
@@ -47,6 +53,25 @@ export function positionFromString(str: string): Position {
|
||||
return positionsByString[str];
|
||||
}
|
||||
|
||||
export function panelOpensMaximizedSettingToString(setting: PanelOpensMaximizedOptions): string {
|
||||
switch (setting) {
|
||||
case PanelOpensMaximizedOptions.ALWAYS: return 'always';
|
||||
case PanelOpensMaximizedOptions.NEVER: return 'never';
|
||||
case PanelOpensMaximizedOptions.REMEMBER_LAST: return 'preserve';
|
||||
default: return 'preserve';
|
||||
}
|
||||
}
|
||||
|
||||
const panelOpensMaximizedByString: { [key: string]: PanelOpensMaximizedOptions } = {
|
||||
[panelOpensMaximizedSettingToString(PanelOpensMaximizedOptions.ALWAYS)]: PanelOpensMaximizedOptions.ALWAYS,
|
||||
[panelOpensMaximizedSettingToString(PanelOpensMaximizedOptions.NEVER)]: PanelOpensMaximizedOptions.NEVER,
|
||||
[panelOpensMaximizedSettingToString(PanelOpensMaximizedOptions.REMEMBER_LAST)]: PanelOpensMaximizedOptions.REMEMBER_LAST
|
||||
};
|
||||
|
||||
export function panelOpensMaximizedFromString(str: string): PanelOpensMaximizedOptions {
|
||||
return panelOpensMaximizedByString[str];
|
||||
}
|
||||
|
||||
export interface IWorkbenchLayoutService extends ILayoutService {
|
||||
|
||||
readonly _serviceBrand: undefined;
|
||||
@@ -207,7 +232,7 @@ export interface IWorkbenchLayoutService extends ILayoutService {
|
||||
/**
|
||||
* Resizes currently focused part on main access
|
||||
*/
|
||||
resizePart(part: Parts, sizeChange: number): void;
|
||||
resizePart(part: Parts, sizeChangeWidth: number, sizeChangeHeight: number): void;
|
||||
|
||||
/**
|
||||
* Register a part to participate in the layout.
|
||||
|
||||
Reference in New Issue
Block a user