2018-04-18 11:34:30 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// const foo = /*a*/a/*b*/ => {
|
|
|
|
//// // return comment
|
|
|
|
//// return a;
|
|
|
|
//// };
|
|
|
|
|
|
|
|
goTo.select("a", "b");
|
|
|
|
edit.applyRefactor({
|
|
|
|
refactorName: "Add or remove braces in an arrow function",
|
|
|
|
actionName: "Remove braces from arrow function",
|
|
|
|
actionDescription: "Remove braces from arrow function",
|
2018-04-25 12:25:47 +02:00
|
|
|
newContent: `const foo = a => /* return comment*/ a;`,
|
2018-04-18 11:34:30 +02:00
|
|
|
});
|