@@ -17,7 +17,7 @@ import { Cursor, CursorEventType } from 'vs/editor/common/controller/cursor';
1717import { CursorColumns } from 'vs/editor/common/controller/cursorCommon' ;
1818import { IViewModelHelper } from 'vs/editor/common/controller/oneCursor' ;
1919import { EditorState } from 'vs/editor/common/core/editorState' ;
20- import { Position } from 'vs/editor/common/core/position' ;
20+ import { Position , IPosition } from 'vs/editor/common/core/position' ;
2121import { Range } from 'vs/editor/common/core/range' ;
2222import { Selection } from 'vs/editor/common/core/selection' ;
2323import * as editorCommon from 'vs/editor/common/editorCommon' ;
@@ -263,7 +263,7 @@ export abstract class CommonCodeEditor extends Disposable implements editorCommo
263263
264264 protected abstract _getCompletelyVisibleViewRange ( ) : Range ;
265265
266- public getVisibleColumnFromPosition ( rawPosition : editorCommon . IPosition ) : number {
266+ public getVisibleColumnFromPosition ( rawPosition : IPosition ) : number {
267267 if ( ! this . model ) {
268268 return rawPosition . column ;
269269 }
@@ -281,7 +281,7 @@ export abstract class CommonCodeEditor extends Disposable implements editorCommo
281281 return this . cursor . getPosition ( ) . clone ( ) ;
282282 }
283283
284- public setPosition ( position : editorCommon . IPosition , reveal : boolean = false , revealVerticalInCenter : boolean = false , revealHorizontal : boolean = false ) : void {
284+ public setPosition ( position : IPosition , reveal : boolean = false , revealVerticalInCenter : boolean = false , revealHorizontal : boolean = false ) : void {
285285 if ( ! this . cursor ) {
286286 return ;
287287 }
@@ -342,31 +342,31 @@ export abstract class CommonCodeEditor extends Disposable implements editorCommo
342342 ) ;
343343 }
344344
345- public revealPosition ( position : editorCommon . IPosition , revealVerticalInCenter : boolean = false , revealHorizontal : boolean = false ) : void {
345+ public revealPosition ( position : IPosition , revealVerticalInCenter : boolean = false , revealHorizontal : boolean = false ) : void {
346346 this . _revealPosition (
347347 position ,
348348 revealVerticalInCenter ? editorCommon . VerticalRevealType . Center : editorCommon . VerticalRevealType . Simple ,
349349 revealHorizontal
350350 ) ;
351351 }
352352
353- public revealPositionInCenter ( position : editorCommon . IPosition ) : void {
353+ public revealPositionInCenter ( position : IPosition ) : void {
354354 this . _revealPosition (
355355 position ,
356356 editorCommon . VerticalRevealType . Center ,
357357 true
358358 ) ;
359359 }
360360
361- public revealPositionInCenterIfOutsideViewport ( position : editorCommon . IPosition ) : void {
361+ public revealPositionInCenterIfOutsideViewport ( position : IPosition ) : void {
362362 this . _revealPosition (
363363 position ,
364364 editorCommon . VerticalRevealType . CenterIfOutsideViewport ,
365365 true
366366 ) ;
367367 }
368368
369- private _revealPosition ( position : editorCommon . IPosition , verticalType : editorCommon . VerticalRevealType , revealHorizontal : boolean ) : void {
369+ private _revealPosition ( position : IPosition , verticalType : editorCommon . VerticalRevealType , revealHorizontal : boolean ) : void {
370370 if ( ! Position . isIPosition ( position ) ) {
371371 throw new Error ( 'Invalid arguments' ) ;
372372 }
0 commit comments