/// <reference path='fourslash.ts' />

////const foo = 1;
////const bar = /*start*/`1` + "2" + `3` + `${foo}`/*end*/;

goTo.select("start", "end");
edit.applyRefactor({
    refactorName: "Convert to template string",
    actionName: "Convert to template string",
    actionDescription: ts.Diagnostics.Convert_to_template_string.message,
    newContent: [
        "const foo = 1;",
        "const bar = `123${foo}`;"
    ].join("\n")
});
