3e32e15895
* Add 'fixAllDescription' property to CodeFixAction * Code review * Add to protocol * Make fixAllDescription be just a string
22 lines
410 B
TypeScript
22 lines
410 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////function f() {
|
|
//// await Promise.resolve();
|
|
////}
|
|
////
|
|
////const g = () => {
|
|
//// await f();
|
|
////}
|
|
|
|
verify.codeFixAll({
|
|
fixId: "fixAwaitInSyncFunction",
|
|
fixAllDescription: "Add all missing 'async' modifiers",
|
|
newFileContent:
|
|
`async function f() {
|
|
await Promise.resolve();
|
|
}
|
|
|
|
const g = async () => {
|
|
await f();
|
|
}`,
|
|
});
|