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

25 lines
445 B
TypeScript

/// <reference path='fourslash.ts' />
////declare function foo(): (...args: any[]) => void;
////class C {
//// @foo
//// bar() {}
////
//// @foo
//// baz() {}
////}
verify.codeFixAll({
fixId: "addMissingInvocationForDecorator",
fixAllDescription: "Add '()' to all uncalled decorators",
newFileContent:
`declare function foo(): (...args: any[]) => void;
class C {
@foo()
bar() {}
@foo()
baz() {}
}`
});