introduce and use editor move event

This commit is contained in:
Benjamin Pasero
2016-06-01 15:51:12 +02:00
parent 0aa9040c43
commit 7658d10631
8 changed files with 39 additions and 9 deletions

View File

@@ -30,6 +30,7 @@ export interface IEditorPart {
// Events
onEditorsChanged: Event<void>;
onEditorsMoved: Event<void>;
// Methods
openEditor(input?: EditorInput, options?: EditorOptions, sideBySide?: boolean): TPromise<BaseEditor>;
@@ -72,6 +73,10 @@ export class WorkbenchEditorService implements IWorkbenchEditorService {
return this.editorPart.onEditorsChanged;
}
public get onEditorsMoved(): Event<void> {
return this.editorPart.onEditorsMoved;
}
public getActiveEditor(): IEditor {
return this.editorPart.getActiveEditor();
}

View File

@@ -29,6 +29,11 @@ export interface IWorkbenchEditorService extends IEditorService {
*/
onEditorsChanged: Event<void>;
/**
* Emitted when a editors are moved to another position.
*/
onEditorsMoved: Event<void>;
/**
* Returns the currently active editor or null if none.
*/