mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode e74405d11443c5361c31e2bc341866d146eee206 (#8740)
This commit is contained in:
@@ -27,6 +27,26 @@ export const enum Position {
|
||||
BOTTOM
|
||||
}
|
||||
|
||||
export function positionToString(position: Position): string {
|
||||
switch (position) {
|
||||
case Position.LEFT: return 'left';
|
||||
case Position.RIGHT: return 'right';
|
||||
case Position.BOTTOM: return 'bottom';
|
||||
}
|
||||
|
||||
return 'bottom';
|
||||
}
|
||||
|
||||
const positionsByString: { [key: string]: Position } = {
|
||||
[positionToString(Position.LEFT)]: Position.LEFT,
|
||||
[positionToString(Position.RIGHT)]: Position.RIGHT,
|
||||
[positionToString(Position.BOTTOM)]: Position.BOTTOM
|
||||
};
|
||||
|
||||
export function positionFromString(str: string): Position {
|
||||
return positionsByString[str];
|
||||
}
|
||||
|
||||
export interface IWorkbenchLayoutService extends ILayoutService {
|
||||
|
||||
_serviceBrand: undefined;
|
||||
|
||||
Reference in New Issue
Block a user