-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improve fix-all progress bar experience #73412
Conversation
if (value.ClearValue) | ||
{ | ||
Interlocked.Exchange(ref _totalItems, 0); | ||
Interlocked.Exchange(ref _completedItems, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops. we just lost this in a prior refactoring in this space.
@@ -1466,6 +1467,7 @@ internal virtual bool TryApplyChanges(Solution newSolution, IProgress<CodeAnalys | |||
|
|||
foreach (var projectChanges in projectChangesList) | |||
{ | |||
progressTracker.Report(CodeAnalysisProgress.Description(string.Format(WorkspacesResources.Applying_changes_to_0, projectChanges.NewProject.Name))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now, when we're doing the actual application of hte changes to the workspace, you now see progress for that as well.
@@ -165,6 +165,7 @@ private async Task InvokeWorkerAsync(IProgress<CodeAnalysisProgress> progressTra | |||
// Clear the progress we showed while computing the action. | |||
// We'll now show progress as we apply the action. | |||
progressTracker.Report(CodeAnalysisProgress.Clear()); | |||
progressTracker.Report(CodeAnalysisProgress.Description(EditorFeaturesResources.Applying_changes)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, after cleanup, and selecting "apply" we actually "Applying changes" :)
So user sees 3 passes.
First: Gettins the initial fixes.
Second: Cleaning them.
Third: Applying them to workspace.
@@ -11,6 +11,7 @@ | |||
using System.Threading; | |||
using System.Threading.Tasks; | |||
using Microsoft.CodeAnalysis; | |||
using Microsoft.CodeAnalysis.CodeActions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FixALlProgressSmall.mp4