@@ -763,8 +763,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
763763 this . modifiedEditor . revealLineInCenterIfOutsideViewport ( lineNumber , scrollType ) ;
764764 }
765765
766- public revealLineAtDefinition ( lineNumber : number , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
767- this . modifiedEditor . revealLineAtDefinition ( lineNumber , scrollType ) ;
766+ public revealLineNearTop ( lineNumber : number , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
767+ this . modifiedEditor . revealLineNearTop ( lineNumber , scrollType ) ;
768768 }
769769
770770 public revealPosition ( position : IPosition , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
@@ -779,8 +779,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
779779 this . modifiedEditor . revealPositionInCenterIfOutsideViewport ( position , scrollType ) ;
780780 }
781781
782- public revealPositionAtDefinition ( position : IPosition , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
783- this . modifiedEditor . revealPositionAtDefinition ( position , scrollType ) ;
782+ public revealPositionNearTop ( position : IPosition , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
783+ this . modifiedEditor . revealPositionNearTop ( position , scrollType ) ;
784784 }
785785
786786 public getSelection ( ) : Selection | null {
@@ -815,8 +815,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
815815 this . modifiedEditor . revealLinesInCenterIfOutsideViewport ( startLineNumber , endLineNumber , scrollType ) ;
816816 }
817817
818- public revealLinesAtDefinition ( startLineNumber : number , endLineNumber : number , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
819- this . modifiedEditor . revealLinesAtDefinition ( startLineNumber , endLineNumber , scrollType ) ;
818+ public revealLinesNearTop ( startLineNumber : number , endLineNumber : number , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
819+ this . modifiedEditor . revealLinesNearTop ( startLineNumber , endLineNumber , scrollType ) ;
820820 }
821821
822822 public revealRange ( range : IRange , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth , revealVerticalInCenter : boolean = false , revealHorizontal : boolean = true ) : void {
@@ -831,8 +831,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
831831 this . modifiedEditor . revealRangeInCenterIfOutsideViewport ( range , scrollType ) ;
832832 }
833833
834- public revealRangeAtDefinition ( range : IRange , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
835- this . modifiedEditor . revealRangeAtDefinition ( range , scrollType ) ;
834+ public revealRangeNearTop ( range : IRange , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
835+ this . modifiedEditor . revealRangeNearTop ( range , scrollType ) ;
836836 }
837837
838838 public revealRangeAtTop ( range : IRange , scrollType : editorCommon . ScrollType = editorCommon . ScrollType . Smooth ) : void {
0 commit comments