private Task <IKernelCommandResult> SendHoverRequest(KernelBase kernel, string code, int line, int character) { var command = new RequestHoverText(RequestHoverText.MakeDataUriFromContents(code), new LinePosition(line, character)); return(kernel.SendAsync(command)); }
public static TextDocument FromDocumentContents(string code) { return(new TextDocument(RequestHoverText.MakeDataUriFromContents(code))); }