You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Performing refactor..." progress status for "Move class to file" #5235
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.
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.
Turns out, they do show. But as status bar notifications:
I've opened microsoft/vscode-languageserver-node#1567 about supporting toast notifications, and I will add support for the status bar notification for these new refactors in the meantime.
The notifications aren't toast notifications, but it's currently the best I think we can do. Depending on the response to microsoft/vscode-languageserver-node#1567 I will look at using toasts so they're more prominent later.
changed the title [-]"Performing refactor..." toast for "Move class to file"[/-][+]"Performing refactor..." progress status for "Move class to file"[/+]on Oct 10, 2024
Activity
WIP - add progress reporting for move-to-file
DanTup commentedon Sep 26, 2024
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.
FMorschel commentedon Oct 7, 2024
Do you believe that this issue is related to the experimental refactor not showing progress as well (coming from dart-lang/sdk#56855)?
DanTup commentedon Oct 9, 2024
Yeah, probably. For reasons I don't yet understand, it seems like the progress notifications just aren't showing.
DanTup commentedon Oct 9, 2024
Turns out, they do show. But as status bar notifications:
I've opened microsoft/vscode-languageserver-node#1567 about supporting toast notifications, and I will add support for the status bar notification for these new refactors in the meantime.
[analysis_server] Ensure progress notifications are sent for new inte…
DanTup commentedon Oct 10, 2024
Missing progress updates is implemented via dart-lang/sdk@7088dc4.
The notifications aren't toast notifications, but it's currently the best I think we can do. Depending on the response to microsoft/vscode-languageserver-node#1567 I will look at using toasts so they're more prominent later.
[-]"Performing refactor..." toast for "Move class to file"[/-][+]"Performing refactor..." progress status for "Move class to file"[/+]