mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
Use the model we already have
This commit is contained in:
parent
f1e4efb9e6
commit
6f1d0e6973
1 changed files with 2 additions and 2 deletions
|
@ -195,12 +195,12 @@ class GotoDefinitionWithMouseEditorContribution implements editorCommon.IEditorC
|
|||
}
|
||||
|
||||
private findDefinition(target: IMouseTarget): TPromise<Location[]> {
|
||||
let model = this.editor.getModel();
|
||||
const model = this.editor.getModel();
|
||||
if (!model) {
|
||||
return TPromise.as(null);
|
||||
}
|
||||
|
||||
return getDefinitionsAtPosition(this.editor.getModel(), target.position);
|
||||
return getDefinitionsAtPosition(model, target.position);
|
||||
}
|
||||
|
||||
private gotoDefinition(target: IMouseTarget, sideBySide: boolean): TPromise<any> {
|
||||
|
|
Loading…
Reference in a new issue