private static async Task <IEnumerable <LinePositionSpanTextChange> > FormattingChangesForRange(FormatRangeRequest req) { var workspace = await TestHelpers.CreateSimpleWorkspace(req.Buffer, req.FileName); RequestHandler <FormatRangeRequest, FormatRangeResponse> controller = new FormatRangeService(workspace, new FormattingOptions()); return((await controller.Handle(req)).Changes); }
private static async Task<IEnumerable<LinePositionSpanTextChange>> FormattingChangesForRange(FormatRangeRequest req) { var workspace = await TestHelpers.CreateSimpleWorkspace(req.Buffer, req.FileName); RequestHandler<FormatRangeRequest, FormatRangeResponse> controller = new FormatRangeService(workspace, new FormattingOptions()); return (await controller.Handle(req)).Changes; }