2018-12-06 10:54:23 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// const foo = "/*x*/f/*y*/oobar is " + 42 + " years" + " old" + " and " + 6 + " cars" + " are" + " missing"
|
|
|
|
|
|
|
|
goTo.select("x", "y");
|
|
|
|
edit.applyRefactor({
|
2020-01-03 01:32:06 +01:00
|
|
|
refactorName: "Convert to template string",
|
|
|
|
actionName: "Convert to template string",
|
|
|
|
actionDescription: ts.Diagnostics.Convert_to_template_string.message,
|
2018-12-06 10:54:23 +01:00
|
|
|
newContent:
|
|
|
|
`const foo = \`foobar is \${42} years old and \${6} cars are missing\``,
|
|
|
|
});
|