예제 #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));
        }
예제 #2
0
 public static TextDocument FromDocumentContents(string code)
 {
     return(new TextDocument(RequestHoverText.MakeDataUriFromContents(code)));
 }