vscode-gengetset
vscode-gengetset copied to clipboard
Getter and setter using constructor too
Hi :)
Would it be possible to allow Getter / Setter generation from the constructor as well rather than only class declaration?
For example extension works great if declaring the vars:
export class test{
private arg1: number;
private arg2: number;
// ...
}
But It also possible to do the same in the constructor method:
export class test{
constructor(private arg1: number, private arg2: number) {
}
// ...
}
It would be cool if the extension would detect the second version as well ^_^