Skip to content
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

Merged
merged 7 commits into from
Feb 17, 2022
Merged

Port more tests #59587

merged 7 commits into from
Feb 17, 2022

Conversation

sharwell
Copy link
Member

No description provided.

@sharwell sharwell requested a review from a team as a code owner February 16, 2022 20:41
@sharwell sharwell marked this pull request as draft February 16, 2022 20:42
@sharwell sharwell marked this pull request as ready for review February 16, 2022 21:16
@sharwell sharwell requested a review from a team as a code owner February 16, 2022 21:16
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))
Copy link
Member

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

Copy link
Member Author

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).

@sharwell sharwell merged commit 840ee78 into dotnet:main Feb 17, 2022
@sharwell sharwell deleted the port-more-tests branch February 17, 2022 15:29
@ghost ghost added this to the Next milestone Feb 17, 2022
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P2 Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants