@@ -19,19 +19,20 @@ import { IStorageService } from 'vs/platform/storage/common/storage';
1919import * as editorCommon from 'vs/editor/common/editorCommon' ;
2020import { ICodeEditor } from 'vs/editor/browser/editorBrowser' ;
2121import { registerEditorContribution } from 'vs/editor/browser/editorExtensions' ;
22- import { ReferencesModel , OneReference } from './referencesModel' ;
22+ import { ReferencesModel } from './referencesModel' ;
2323import { ReferenceWidget , LayoutData } from './referencesWidget' ;
2424import { Range } from 'vs/editor/common/core/range' ;
2525import { ITextModelService } from 'vs/editor/common/services/resolverService' ;
2626import { IThemeService } from 'vs/platform/theme/common/themeService' ;
2727import { Position } from 'vs/editor/common/core/position' ;
2828import { IEnvironmentService } from 'vs/platform/environment/common/environment' ;
29+ import { Location } from 'vs/editor/common/modes' ;
2930
3031export const ctxReferenceSearchVisible = new RawContextKey < boolean > ( 'referenceSearchVisible' , false ) ;
3132
3233export interface RequestOptions {
3334 getMetaTitle ( model : ReferencesModel ) : string ;
34- onGoto ?: ( reference : OneReference ) => TPromise < any > ;
35+ onGoto ?: ( reference : Location ) => TPromise < any > ;
3536}
3637
3738export class ReferencesController implements editorCommon . IEditorContribution {
@@ -189,7 +190,7 @@ export class ReferencesController implements editorCommon.IEditorContribution {
189190 this . _requestIdPool += 1 ; // Cancel pending requests
190191 }
191192
192- private _gotoReference ( ref : OneReference ) : void {
193+ private _gotoReference ( ref : Location ) : void {
193194 this . _widget . hide ( ) ;
194195
195196 this . _ignoreModelChangeEvent = true ;
@@ -222,7 +223,7 @@ export class ReferencesController implements editorCommon.IEditorContribution {
222223 } ) ;
223224 }
224225
225- private _openReference ( ref : OneReference , sideBySide : boolean ) : void {
226+ private _openReference ( ref : Location , sideBySide : boolean ) : void {
226227 const { uri, range } = ref ;
227228 this . _editorService . openEditor ( {
228229 resource : uri ,
0 commit comments