public async Task <Hover> GetHoverAsync( CodeCellId cellId, Position position, CancellationToken cancellationToken = default) { if (hoverController == null) { hoverController = new HoverController(this); } return(await hoverController.ProvideHoverAsync( GetDocument (cellId), position.ToRoslyn(), cancellationToken)); }
public async Task <Hover> GetHoverAsync( CodeCellId cellId, Position position, CancellationToken cancellationToken = default) { if (hoverController == null) { hoverController = new HoverController(this); } return(await hoverController.ProvideHoverAsync( await GetSourceTextAsync( cellId.ToDocumentId(), cancellationToken), position, cancellationToken)); }