Merge from vscode cfc1ab4c5f816765b91fb7ead3c3427a7c8581a3

This commit is contained in:
ADS Merger
2020-03-11 04:19:23 +00:00
parent 16fab722d5
commit 4c3e48773d
880 changed files with 20441 additions and 11232 deletions

View File

@@ -5,14 +5,10 @@
import { Event } from 'vs/base/common/event';
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
import { IDimension } from 'vs/base/browser/dom';
export const ILayoutService = createDecorator<ILayoutService>('layoutService');
export interface IDimension {
readonly width: number;
readonly height: number;
}
export interface ILayoutService {
_serviceBrand: undefined;
@@ -27,9 +23,19 @@ export interface ILayoutService {
*/
readonly container: HTMLElement;
/**
* An offset to use for positioning elements inside the container.
*/
readonly offset?: { top: number };
/**
* An event that is emitted when the container is layed out. The
* event carries the dimensions of the container as part of it.
*/
readonly onLayout: Event<IDimension>;
/**
* Focus the primary component of the container.
*/
focus(): void;
}