localizely / flutter-intl-vscode

This VS Code extension generates boilerplate code for localization of Flutter apps with official Dart Intl library
MIT License
87 stars 1 forks source link

Code Actions stop working after removing const before the Text #114

Closed zzzh closed 6 months ago

zzzh commented 6 months ago

Hi,

I was trying to "extract to ARB" on "Tip" inside below code:

return AlertDialog( title: const Text("Tip"), ... }

It works, then I have to remove the const before Text(since it's an error now), then, the lightbulb of Code Actions stop working, I have to reload window to make it work, that would happen a lot since there are many same code there.

Any ideas?

BTW, after I did it, I hope all such code(title: const Text("Tip") of AlertDialog) being replaced by "title: Text(S.of(context).tip)", but that don't happen, only the one I do "extract to ARB" does

zzzh commented 6 months ago

Sorry, it's working now, I don't know why, but this should not be your issue.