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