Open scheglov opened 12 months ago
It looks like the current prompt we have is only for rename:
I'll try adding support for this to refactors and see what it's like (I think we might have to show something like the first warnings text and "Refactor Anyway" as a button).
If that works well, then supporting updating some places would probably just be a case of making the refactor produce edits for the places it can do and an appropriate warning so the dialog explains that only some places are being updated.
... we might have to show something like the first warnings text ...
How often do we have multiple warnings? I'm concerned about showing the user a warning they don't care about and not showing one they do care about.
Multiple warnings? Easily, if you have several places with cascades. Can we show all warnings in a list?
Can we show all warnings in a list?
We can't use any formatting in the toast notification, so while we could join them together they would all be merging into a single paragraph.
What we could possibly do is:
https://github.com/dart-lang/sdk/issues/53433
It would be nice to let users continue, even if some places cannot be updated.
@DanTup