TypeScript/tests/cases/fourslash/codeFixUnusedIdentifier_all_prefix.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

17 lines
411 B
TypeScript

/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @noUnusedParameters: true
////function f(a, b) {
//// const x = 0; // Can't be prefixed, ignored
////}
verify.codeFixAll({
fixId: "unusedIdentifier_prefix",
fixAllDescription: "Prefix all unused declarations with '_' where possible",
newFileContent:
`function f(_a, _b) {
const x = 0; // Can't be prefixed, ignored
}`,
});