p42ai / js-assistant

120+ refactorings and code-assists for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=p42ai.refactor
MIT License
119 stars 7 forks source link

Code Action: Initialize field from constructor #23

Open hediet opened 2 years ago

hediet commented 2 years ago

image

This should generate a constructor if there is none and add a parameter. Alternatively, what I would actually prefer, it uses constructor(public editorWorkerService: ...).

lgrammel commented 2 years ago

Thanks for the suggestion!