Ejemplo n.º 1
0
 public GetCodeActionsModule(GetCodeActionsHandler gotoDefinitionHandler)
 {
     Post["/getcodeactions"] = x =>
     {
         var req = this.Bind <Request>();
         var res = gotoDefinitionHandler.GetCodeActions(req);
         return(Response.AsJson(res));
     };
 }
Ejemplo n.º 2
0
 public RunCodeActionModule(GetCodeActionsHandler codeActionsHandler)
 {
     Post["/runcodeaction"] = x =>
         {
             var req = this.Bind<RunCodeActionRequest>();
             var res = codeActionsHandler.RunCodeAction(req);
             return Response.AsJson(res);
         };
 }
Ejemplo n.º 3
0
 public GetCodeActionsModule(GetCodeActionsHandler gotoDefinitionHandler)
 {
     Post["/getcodeactions"] = x =>
         {
             var req = this.Bind<Request>();
             var res = gotoDefinitionHandler.GetCodeActions(req);
             return Response.AsJson(res);
         };
 }
Ejemplo n.º 4
0
 public RunCodeActionModule(GetCodeActionsHandler codeActionsHandler)
 {
     Post["/runcodeaction"] = x =>
     {
         var req = this.Bind <RunCodeActionRequest>();
         var res = codeActionsHandler.RunCodeAction(req);
         return(Response.AsJson(res));
     };
 }