TypeScript/tests/cases/fourslash/codeFixAwaitInSyncFunction_all.ts
Andy 3e32e15895
Add 'fixAllDescription' property to CodeFixAction (#22616)
* Add 'fixAllDescription' property to CodeFixAction

* Code review

* Add to protocol

* Make fixAllDescription be just a string
2018-03-27 18:21:21 -07:00

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();
}`,
});