2020-05-27 02:51:00 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2020-06-03 04:06:12 +02:00
|
|
|
//// const a = (a: number) => { re/*a*/tur/*b*/n a; };
|
2020-05-27 02:51:00 +02:00
|
|
|
|
2020-06-03 04:06:12 +02:00
|
|
|
// Only offer refactor in body if explicity requested
|
2020-05-27 02:51:00 +02:00
|
|
|
goTo.select("a", "b");
|
|
|
|
verify.not.refactorAvailableForTriggerReason("implicit", "Add or remove braces in an arrow function");
|
|
|
|
verify.refactorAvailableForTriggerReason("invoked", "Add or remove braces in an arrow function", "Remove braces from arrow function");
|