Dart-Code / Dart-Code

Dart and Flutter support for VS Code
https://dartcode.org/
MIT License
1.49k stars 302 forks source link

"Performing refactor..." toast for "Move class to file" #5235

Open FMorschel opened 1 month ago

FMorschel commented 1 month ago

Is your feature request related to a problem? Please describe. When using the "Move class to file" refactor I see no indication that it is running even when it takes some seconds to finish (probably figuring out dependencies for imports and such).

Describe the solution you'd like I'd like a toast to show the user something is happening and if something went wrong.

Additional context See https://github.com/Dart-Code/Dart-Code/issues/5218.

DanTup commented 1 week ago

WIP at https://github.com/DanTup/sdk/tree/move-to-file-status... I added progress reporting and can see it in the analyzer logs, but no progress shown on screen. Not sure if it doesn't show a toast (only a spinner), but there's also no spinner. Not sure if having multiple at the same time (there is analyzing statuses too) is causing issues. Needs some debugging.