@@ -9,15 +9,15 @@ import { Dimension, show, hide, addClass } from 'vs/base/browser/dom';
99import { Registry } from 'vs/platform/registry/common/platform' ;
1010import { IEditorRegistry , Extensions as EditorExtensions , IEditorDescriptor } from 'vs/workbench/browser/editor' ;
1111import { IWorkbenchLayoutService } from 'vs/workbench/services/layout/browser/layoutService' ;
12- import { BaseEditor } from 'vs/workbench/browser/parts/editor/baseEditor ' ;
12+ import { EditorPane } from 'vs/workbench/browser/parts/editor/editorPane ' ;
1313import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
1414import { IEditorProgressService , LongRunningOperation } from 'vs/platform/progress/common/progress' ;
1515import { IEditorGroupView , DEFAULT_EDITOR_MIN_DIMENSIONS , DEFAULT_EDITOR_MAX_DIMENSIONS } from 'vs/workbench/browser/parts/editor/editor' ;
1616import { Emitter } from 'vs/base/common/event' ;
1717import { assertIsDefined } from 'vs/base/common/types' ;
1818
1919export interface IOpenEditorResult {
20- readonly editorPane : BaseEditor ;
20+ readonly editorPane : EditorPane ;
2121 readonly editorChanged : boolean ;
2222}
2323
@@ -34,10 +34,10 @@ export class EditorControl extends Disposable {
3434 private _onDidSizeConstraintsChange = this . _register ( new Emitter < { width : number ; height : number ; } | undefined > ( ) ) ;
3535 readonly onDidSizeConstraintsChange = this . _onDidSizeConstraintsChange . event ;
3636
37- private _activeEditorPane : BaseEditor | null = null ;
37+ private _activeEditorPane : EditorPane | null = null ;
3838 get activeEditorPane ( ) : IVisibleEditorPane | null { return this . _activeEditorPane as IVisibleEditorPane | null ; }
3939
40- private readonly editorPanes : BaseEditor [ ] = [ ] ;
40+ private readonly editorPanes : EditorPane [ ] = [ ] ;
4141
4242 private readonly activeEditorPaneDisposables = this . _register ( new DisposableStore ( ) ) ;
4343 private dimension : Dimension | undefined ;
@@ -67,7 +67,7 @@ export class EditorControl extends Disposable {
6767 return { editorPane, editorChanged } ;
6868 }
6969
70- private doShowEditorPane ( descriptor : IEditorDescriptor ) : BaseEditor {
70+ private doShowEditorPane ( descriptor : IEditorDescriptor ) : EditorPane {
7171
7272 // Return early if the currently active editor pane can handle the input
7373 if ( this . _activeEditorPane && descriptor . describes ( this . _activeEditorPane ) ) {
@@ -99,7 +99,7 @@ export class EditorControl extends Disposable {
9999 return editorPane ;
100100 }
101101
102- private doCreateEditorPane ( descriptor : IEditorDescriptor ) : BaseEditor {
102+ private doCreateEditorPane ( descriptor : IEditorDescriptor ) : EditorPane {
103103
104104 // Instantiate editor
105105 const editorPane = this . doInstantiateEditorPane ( descriptor ) ;
@@ -116,7 +116,7 @@ export class EditorControl extends Disposable {
116116 return editorPane ;
117117 }
118118
119- private doInstantiateEditorPane ( descriptor : IEditorDescriptor ) : BaseEditor {
119+ private doInstantiateEditorPane ( descriptor : IEditorDescriptor ) : EditorPane {
120120
121121 // Return early if already instantiated
122122 const existingEditorPane = this . editorPanes . find ( editorPane => descriptor . describes ( editorPane ) ) ;
@@ -131,7 +131,7 @@ export class EditorControl extends Disposable {
131131 return editorPane ;
132132 }
133133
134- private doSetActiveEditorPane ( editorPane : BaseEditor | null ) {
134+ private doSetActiveEditorPane ( editorPane : EditorPane | null ) {
135135 this . _activeEditorPane = editorPane ;
136136
137137 // Clear out previous active editor pane listeners
@@ -147,7 +147,7 @@ export class EditorControl extends Disposable {
147147 this . _onDidSizeConstraintsChange . fire ( undefined ) ;
148148 }
149149
150- private async doSetInput ( editorPane : BaseEditor , editor : EditorInput , options : EditorOptions | undefined , context : IEditorOpenContext ) : Promise < boolean > {
150+ private async doSetInput ( editorPane : EditorPane , editor : EditorInput , options : EditorOptions | undefined , context : IEditorOpenContext ) : Promise < boolean > {
151151
152152 // If the input did not change, return early and only apply the options
153153 // unless the options instruct us to force open it even if it is the same
0 commit comments