mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
complete toTemplate
This commit is contained in:
@@ -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!\``,
|
||||
});
|
||||
Reference in New Issue
Block a user