fix 'vscode.executeReferenceProvider' command

This commit is contained in:
Johannes Rieken
2016-04-25 18:01:16 +02:00
parent bf804d1cc1
commit 3f2008dea6
2 changed files with 33 additions and 7 deletions

View File

@@ -245,7 +245,7 @@ class ExtHostApiCommands {
resource,
position: position && typeConverters.fromPosition(position)
};
return this._commands.executeCommand<modes.IReference[]>('_executeDocumentHighlights', args).then(value => {
return this._commands.executeCommand<modes.IReference[]>('_executeReferenceProvider', args).then(value => {
if (Array.isArray(value)) {
return value.map(typeConverters.location.to);
}