* Add 'fixAllDescription' property to CodeFixAction * Code review * Add to protocol * Make fixAllDescription be just a string
35 lines
759 B
TypeScript
35 lines
759 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////abstract class A {
|
|
//// abstract m(): void;
|
|
//// abstract n(): void;
|
|
////}
|
|
////class B extends A {}
|
|
////class C extends A {}
|
|
|
|
verify.codeFixAll({
|
|
fixId: "fixClassDoesntImplementInheritedAbstractMember",
|
|
fixAllDescription: "Implement all inherited abstract classes",
|
|
newFileContent:
|
|
`abstract class A {
|
|
abstract m(): void;
|
|
abstract n(): void;
|
|
}
|
|
class B extends A {
|
|
m(): void {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
n(): void {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}
|
|
class C extends A {
|
|
m(): void {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
n(): void {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}`,
|
|
});
|