mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
introduce and use editor move event
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user