-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port more tests #59587
Port more tests #59587
Conversation
src/VisualStudio/IntegrationTest/New.IntegrationTests/InProcess/ShellInProcess.cs
Outdated
Show resolved
Hide resolved
VisualStudio.Editor.Verify.CodeAction($"Upgrade this project to C# language version '{version}'", applyFix: true); | ||
// Suspend file change notification during code action application, since spurious file change notifications | ||
// can cause silent failure to apply the code action if they occur within this block. | ||
await using (var fileChangeRestorer = await TestServices.Shell.PauseFileChangesAsync(HangMitigatingCancellationToken)) |
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.
It might be useful to extract this helper to a core helper method on the EditorVerifiter perhaps? e.g. InvokeFixAsync(string name, applyFix:..., cancellationToken)
and re-use that here + CSharpUpdateProjectToAllowUnsafe.cs
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.
I'll keep it like this for now. The short term goal is eliminate this requirement (all cases where this appear are bugs that users will hit because they don't have the workaround).
337d8f4
to
6f94f3d
Compare
No description provided.