type converters, use namespace for Hover

This commit is contained in:
Johannes Rieken
2018-05-04 18:31:55 +02:00
parent c47296282a
commit 781520cbe1
3 changed files with 12 additions and 10 deletions

View File

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