3e32e15895
* Add 'fixAllDescription' property to CodeFixAction * Code review * Add to protocol * Make fixAllDescription be just a string
27 lines
655 B
TypeScript
27 lines
655 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////interface I { i(): void; }
|
|
////interface J { j(): void; }
|
|
////class C implements I, J {}
|
|
////class D implements J {}
|
|
|
|
verify.codeFixAll({
|
|
fixId: "fixClassIncorrectlyImplementsInterface",
|
|
fixAllDescription: "Implement all unimplemented interfaces",
|
|
newFileContent:
|
|
`interface I { i(): void; }
|
|
interface J { j(): void; }
|
|
class C implements I, J {
|
|
i(): void {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
j(): void {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}
|
|
class D implements J {
|
|
j(): void {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}`,
|
|
});
|