@@ -866,6 +866,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
866866 return this . _domElement ;
867867 }
868868
869+ // #region editorBrowser.IDiffEditor: Delegating to modified Editor
870+
869871 public getVisibleColumnFromPosition ( position : IPosition ) : number {
870872 return this . _modifiedEditor . getVisibleColumnFromPosition ( position ) ;
871873 }
@@ -978,6 +980,24 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
978980 return this . _modifiedEditor . getSupportedActions ( ) ;
979981 }
980982
983+ public focus ( ) : void {
984+ this . _modifiedEditor . focus ( ) ;
985+ }
986+
987+ public trigger ( source : string | null | undefined , handlerId : string , payload : any ) : void {
988+ this . _modifiedEditor . trigger ( source , handlerId , payload ) ;
989+ }
990+
991+ public createDecorationsCollection ( decorations ?: IModelDeltaDecoration [ ] ) : editorCommon . IEditorDecorationsCollection {
992+ return this . _modifiedEditor . createDecorationsCollection ( decorations ) ;
993+ }
994+
995+ public changeDecorations ( callback : ( changeAccessor : IModelDecorationsChangeAccessor ) => any ) : any {
996+ return this . _modifiedEditor . changeDecorations ( callback ) ;
997+ }
998+
999+ // #endregion
1000+
9811001 public saveViewState ( ) : editorCommon . IDiffEditorViewState {
9821002 const originalViewState = this . _originalEditor . saveViewState ( ) ;
9831003 const modifiedViewState = this . _modifiedEditor . saveViewState ( ) ;
@@ -999,9 +1019,6 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
9991019 this . _elementSizeObserver . observe ( dimension ) ;
10001020 }
10011021
1002- public focus ( ) : void {
1003- this . _modifiedEditor . focus ( ) ;
1004- }
10051022
10061023 public hasTextFocus ( ) : boolean {
10071024 return this . _originalEditor . hasTextFocus ( ) || this . _modifiedEditor . hasTextFocus ( ) ;
@@ -1023,18 +1040,6 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
10231040 this . _cleanViewZonesAndDecorations ( ) ;
10241041 }
10251042
1026- public trigger ( source : string | null | undefined , handlerId : string , payload : any ) : void {
1027- this . _modifiedEditor . trigger ( source , handlerId , payload ) ;
1028- }
1029-
1030- public createDecorationsCollection ( decorations ?: IModelDeltaDecoration [ ] ) : editorCommon . IEditorDecorationsCollection {
1031- return this . _modifiedEditor . createDecorationsCollection ( decorations ) ;
1032- }
1033-
1034- public changeDecorations ( callback : ( changeAccessor : IModelDecorationsChangeAccessor ) => any ) : any {
1035- return this . _modifiedEditor . changeDecorations ( callback ) ;
1036- }
1037-
10381043 //------------ end IDiffEditor methods
10391044
10401045
0 commit comments