complete toTemplate

This commit is contained in:
BigAru
2019-03-24 16:52:23 +01:00
parent fc13b2b43a
commit 3d2b552fd3
3 changed files with 1 additions and 33 deletions
@@ -8,5 +8,5 @@ edit.applyRefactor({
actionName: "Convert to template literal",
actionDescription: "Convert to template literal",
newContent:
"const foo = `with $\\{dollar}`",
"const foo = `with $\\\\{dollar}`",
});
@@ -1,18 +0,0 @@
/// <reference path='fourslash.ts' />
//// const foo = "/*x*/w/*y*/ait for others\n"
//// + "D'oh!\n"
//// + ""Yada, yada, yada\n"
//// + "Hasta la vista, baby!"
goTo.select("x", "y");
edit.applyRefactor({
refactorName: "Convert string concatenation or template literal",
actionName: "Convert to template literal",
actionDescription: "Convert to template literal",
newContent:
`const foo = \`wait for others
D'oh!
Yada, yada, yada
Hasta la vista, baby!\``,
});
@@ -1,14 +0,0 @@
/// <reference path='fourslash.ts' />
//// const foo = "/*x*/w/*y*/ait for new line\n"
//// + "bada bum!"
goTo.select("x", "y");
edit.applyRefactor({
refactorName: "Convert string concatenation or template literal",
actionName: "Convert to template literal",
actionDescription: "Convert to template literal",
newContent:
`const foo = \`wait for new line
bada bum!\``,
});