3e32e15895
* Add 'fixAllDescription' property to CodeFixAction * Code review * Add to protocol * Make fixAllDescription be just a string
17 lines
411 B
TypeScript
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
|
|
}`,
|
|
});
|