TypeScript/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile_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
374 B
TypeScript

/// <reference path='fourslash.ts' />
// @allowjs: true
// @checkJs: true
// @noEmit: true
// @Filename: a.js
////let x = "";
////x = 1; x = true;
////x = [];
verify.codeFixAll({
fixId: "disableJsDiagnostics",
fixAllDescription: "Add '@ts-ignore' to all error messages",
newFileContent:
`let x = "";
// @ts-ignore
x = 1; x = true;
// @ts-ignore
x = [];`,
});