cybertim / vscode-gengetset

Generate Getter and / or Setter Extension for Visual Studio Code
34 stars 17 forks source link

Constructor generated empty for TypeORM models #81

Open navmed opened 4 years ago

navmed commented 4 years ago

I have a TypeORM model like this:

@Entity()
export class Usr {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'citext'     , nullable: false, unique: true  }) username: string;
    @Column({ type: 'citext'     , nullable: false, unique: true  }) email: string;
    @Column({ type: 'boolean'    , nullable: false, default: false  }) archived: boolean;

    @CreateDateColumn() created_at?: Date;
    @CreateDateColumn() updated_at?: Date;
}

When I try to generate a constructor, it's empty