Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public static TextDocument FromDocumentContents(string code)
 {
     return(new TextDocument(RequestHoverText.MakeDataUriFromContents(code)));
 }