Ejemplo n.º 1
0
 public static async Task <(bool success, JObject response)> HandleLspMethod(this KernelBase kernel, string methodName, JObject request)
 {
     return(methodName switch
     {
         "textDocument/hover" => await kernel.GetLanguageServiceResultOrDefault <HoverParams, RequestHoverText, HoverTextProduced, HoverResponse>(request, hp => hp.ToCommand(), HoverResponse.FromHoverEvent),
         _ => (false, default),