type converters, use namespace for DocumentHighlight

This commit is contained in:
Johannes Rieken
2018-05-04 18:33:35 +02:00
parent 781520cbe1
commit 4e46d2a1bb
3 changed files with 12 additions and 12 deletions

View File

@@ -327,7 +327,7 @@ export class ExtHostApiCommands {
position: position && typeConverters.Position.from(position)
};
return this._commands.executeCommand<modes.DocumentHighlight[]>('_executeDocumentHighlights', args)
.then(tryMapWith(typeConverters.toDocumentHighlight));
.then(tryMapWith(typeConverters.DocumentHighlight.to));
}
private _executeReferenceProvider(resource: URI, position: types.Position): Thenable<types.Location[]> {