Closed 2shrestha22 closed 3 years ago
@2shrestha22 Hi 👋 Thank you for your suggestion. It is easy to fix. What do you think maybe it's better allow choose run or watch builder in the settings instead to disable it. Or disabling it is the best option. I do not work with Freezed it therefore I ask you what do you think about it.
@iamarnas Currently when new freezed data class is created builder runner, opens a new terminal and builds. So I think completely disabling build runner will be a good option because everyone using freezed must have known build runner too. 😀
@iamarnas Currently when new freezed data class is created builder runner, opens a new terminal and builds. So I think completely disabling build runner will be a good option because everyone using freezed must have known build runner too. 😀
@2shrestha22 OK. Right now I'm on vacation. I fix it when I find free time.
@iamarnas ok thank you
@2shrestha22 Hi again!
I added option to disable build runner in the Settings/Extensions/JSON To Dart Model
. Let me know if it works as you expected. Thank you.
Which option should we use to disable build runner? I have 4 but it is still running build runner in terminal.
@2shrestha22 Hi 👋
Which option should we use to disable build runner? I have 4 but it is still running build runner in terminal.
Have you latest version 3.2.5?
@iamarnas Hi, Yes I have 3.2.5
@2shrestha22 Then you would see the new option Run Builder
.
Uncheck Run Builder
if you want to disable the build runner.
@iamarnas Let me try again. And I will inform you.
Its working now, found new setting as you described. I will suggest a new feature. What about option in Explorer to create model class there?
@2shrestha22 Thanks for suggestion.
I will suggest a new feature. What about option in Explorer to create model class there?
This feature should work same as from the clipboard or from the file models.jsonc
just would pick faster target directory. If you setup JSON Dart To Model
configuration in the settings and run fast mode. You can generate JSON
string in few seconds by using hot keys. Tips: Try hot keys :)
I will look what can be improved with this method.
This extension is awesome and thanks for developing this. I don't like to run build runner instantly for a single time. I prefer to run build runner with watch mode which I am manually doing while working with freezed. So it will be great to have a option to disable build runner after generating JSON to Dart.