If the interface does not have required members, the action / quick fix code will not appear in the class definition.
interface IFoo { x?: number y?: number } class Foo implements IFoo {
But if the interface has at least one required element, then the code action will appear, and when clicked, all elements will be implemented, including nullable ones.
interface IFoo { x: number y?: number } class Foo implements IFoo {
This behavior is due to the TypeScript compiler, not VS Code. You can track this issue as it is related to VS Code here , and TypeScript functionality here .
Jacob stamm
source share