side by side input: editor factory

This commit is contained in:
Benjamin Pasero
2016-12-02 18:22:55 +01:00
parent f1b7315a84
commit 0c89d399fc
4 changed files with 99 additions and 6 deletions

View File

@@ -363,6 +363,8 @@ export abstract class UntitledEditorInput extends EditorInput implements IEncodi
*/
export class SideBySideEditorInput extends EditorInput {
public static ID: string = 'workbench.editorinputs.sidebysideEditorInput';
private _toUnbind: IDisposable[];
constructor(private name: string, private description: string, private _details: EditorInput, private _master: EditorInput) {
@@ -431,7 +433,7 @@ export class SideBySideEditorInput extends EditorInput {
}
getTypeId(): string {
return 'workbench.editorinputs.sidebysideEditorInput';
return SideBySideEditorInput.ID;
}
public getName(): string {