@@ -8,7 +8,7 @@ import * as nls from 'vs/nls';
88import { Disposable , IDisposable , dispose } from 'vs/base/common/lifecycle' ;
99import { KeyCode , KeyMod , KeyChord } from 'vs/base/common/keyCodes' ;
1010import { RunOnceScheduler } from 'vs/base/common/async' ;
11- import { ICommonCodeEditor , ScrollType , IEditorContribution , FindMatch , TrackedRangeStickiness , OverviewRulerLane , IModel } from 'vs/editor/common/editorCommon' ;
11+ import { ScrollType , IEditorContribution , FindMatch , TrackedRangeStickiness , OverviewRulerLane , IModel } from 'vs/editor/common/editorCommon' ;
1212import { EditorContextKeys } from 'vs/editor/common/editorContextKeys' ;
1313import { registerEditorAction , registerCommonEditorContribution , ServicesAccessor , EditorAction } from 'vs/editor/common/editorCommonExtensions' ;
1414import { Range } from 'vs/editor/common/core/range' ;
@@ -23,6 +23,7 @@ import { ModelDecorationOptions } from 'vs/editor/common/model/textModelWithDeco
2323import { overviewRulerSelectionHighlightForeground } from 'vs/platform/theme/common/colorRegistry' ;
2424import { themeColorFromId } from 'vs/platform/theme/common/themeService' ;
2525import { INewFindReplaceState , FindOptionOverride } from 'vs/editor/contrib/find/common/findState' ;
26+ import { ICodeEditor } from 'vs/editor/browser/editorBrowser' ;
2627
2728export class InsertCursorAbove extends EditorAction {
2829 constructor ( ) {
@@ -42,7 +43,7 @@ export class InsertCursorAbove extends EditorAction {
4243 } ) ;
4344 }
4445
45- public run ( accessor : ServicesAccessor , editor : ICommonCodeEditor , args : any ) : void {
46+ public run ( accessor : ServicesAccessor , editor : ICodeEditor , args : any ) : void {
4647 const cursors = editor . _getCursors ( ) ;
4748 const context = cursors . context ;
4849
@@ -81,7 +82,7 @@ export class InsertCursorBelow extends EditorAction {
8182 } ) ;
8283 }
8384
84- public run ( accessor : ServicesAccessor , editor : ICommonCodeEditor , args : any ) : void {
85+ public run ( accessor : ServicesAccessor , editor : ICodeEditor , args : any ) : void {
8586 const cursors = editor . _getCursors ( ) ;
8687 const context = cursors . context ;
8788
@@ -117,7 +118,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
117118 } ) ;
118119 }
119120
120- private getCursorsForSelection ( selection : Selection , editor : ICommonCodeEditor ) : Selection [ ] {
121+ private getCursorsForSelection ( selection : Selection , editor : ICodeEditor ) : Selection [ ] {
121122 if ( selection . isEmpty ( ) ) {
122123 return [ ] ;
123124 }
@@ -135,7 +136,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
135136 return newSelections ;
136137 }
137138
138- public run ( accessor : ServicesAccessor , editor : ICommonCodeEditor ) : void {
139+ public run ( accessor : ServicesAccessor , editor : ICodeEditor ) : void {
139140 let selections = editor . getSelections ( ) ;
140141 let newSelections = selections
141142 . map ( ( selection ) => this . getCursorsForSelection ( selection , editor ) )
@@ -157,7 +158,7 @@ export class MultiCursorSessionResult {
157158
158159export class MultiCursorSession {
159160
160- public static create ( editor : ICommonCodeEditor , findController : CommonFindController ) : MultiCursorSession {
161+ public static create ( editor : ICodeEditor , findController : CommonFindController ) : MultiCursorSession {
161162 const findState = findController . getState ( ) ;
162163
163164 // Find widget owns entirely what we search for if:
@@ -206,7 +207,7 @@ export class MultiCursorSession {
206207 }
207208
208209 constructor (
209- private readonly _editor : ICommonCodeEditor ,
210+ private readonly _editor : ICodeEditor ,
210211 public readonly findController : CommonFindController ,
211212 public readonly isDisconnectedFromFindController : boolean ,
212213 public readonly searchText : string ,
@@ -304,16 +305,16 @@ export class MultiCursorSelectionController extends Disposable implements IEdito
304305
305306 private static ID = 'editor.contrib.multiCursorController' ;
306307
307- private readonly _editor : ICommonCodeEditor ;
308+ private readonly _editor : ICodeEditor ;
308309 private _ignoreSelectionChange : boolean ;
309310 private _session : MultiCursorSession ;
310311 private _sessionDispose : IDisposable [ ] ;
311312
312- public static get ( editor : ICommonCodeEditor ) : MultiCursorSelectionController {
313+ public static get ( editor : ICodeEditor ) : MultiCursorSelectionController {
313314 return editor . getContribution < MultiCursorSelectionController > ( MultiCursorSelectionController . ID ) ;
314315 }
315316
316- constructor ( editor : ICommonCodeEditor ) {
317+ constructor ( editor : ICodeEditor ) {
317318 super ( ) ;
318319 this . _editor = editor ;
319320 this . _ignoreSelectionChange = false ;
@@ -502,7 +503,7 @@ export class MultiCursorSelectionController extends Disposable implements IEdito
502503
503504export abstract class MultiCursorSelectionControllerAction extends EditorAction {
504505
505- public run ( accessor : ServicesAccessor , editor : ICommonCodeEditor ) : void {
506+ public run ( accessor : ServicesAccessor , editor : ICodeEditor ) : void {
506507 const multiCursorController = MultiCursorSelectionController . get ( editor ) ;
507508 if ( ! multiCursorController ) {
508509 return ;
@@ -655,13 +656,13 @@ class SelectionHighlighterState {
655656export class SelectionHighlighter extends Disposable implements IEditorContribution {
656657 private static ID = 'editor.contrib.selectionHighlighter' ;
657658
658- private editor : ICommonCodeEditor ;
659+ private editor : ICodeEditor ;
659660 private _isEnabled : boolean ;
660661 private decorations : string [ ] ;
661662 private updateSoon : RunOnceScheduler ;
662663 private state : SelectionHighlighterState ;
663664
664- constructor ( editor : ICommonCodeEditor ) {
665+ constructor ( editor : ICodeEditor ) {
665666 super ( ) ;
666667 this . editor = editor ;
667668 this . _isEnabled = editor . getConfiguration ( ) . contribInfo . selectionHighlight ;
@@ -711,7 +712,7 @@ export class SelectionHighlighter extends Disposable implements IEditorContribut
711712 this . _setState ( SelectionHighlighter . _createState ( this . _isEnabled , this . editor ) ) ;
712713 }
713714
714- private static _createState ( isEnabled : boolean , editor : ICommonCodeEditor ) : SelectionHighlighterState {
715+ private static _createState ( isEnabled : boolean , editor : ICodeEditor ) : SelectionHighlighterState {
715716 if ( ! isEnabled ) {
716717 return null ;
717718 }
0 commit comments