-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Remove CS1998 warning entirely and remove dependent C# code fix providers #80144
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
Conversation
@333fred 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
Co-authored-by: 333fred <2371880+333fred@users.noreply.github.com>
Co-authored-by: 333fred <2371880+333fred@users.noreply.github.com>
Co-authored-by: 333fred <2371880+333fred@users.noreply.github.com>
@copilot please comment out the warning so we don't use it again in the future, and delete the resources associated with it. |
Co-authored-by: 333fred <2371880+333fred@users.noreply.github.com>
Done! I've commented out the CS1998 warning definition and deleted the associated resources: Changes made (ca2c367):
The warning infrastructure is now fully disabled and won't be used again in the future. |
@copilot there are errors:
|
@CyrusNajmabadi what do you want to do about |
Co-authored-by: 333fred <2371880+333fred@users.noreply.github.com>
Fixed! I've updated all XLF translation files to remove the Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
@copilot remove those unrelated changes in global.json and build.cmd |
@333fred are we removing the diagnostic entirely? If so, we can just remove these fixers. I assume we're doing the same for VB for consistency? Or are we intending divergence here? |
Yes.
We'll need to clarify with folks. VB is not getting runtime async, so the benefits would be more murky. |
Co-authored-by: 333fred <2371880+333fred@users.noreply.github.com>
@dotnet/roslyn-compiler for reviews please. |
* upstream/main: (201 commits) Handle extension blocks in CLS compliance checker (#80251) Fix Simplify Simplify Simplify Simplify Simplify Add doc for GetInferredNullableAnnotation (#80245) Rename files to match type within Implement ref local hoisting in runtime async. Closes #79763. Pull ref initialization hoisting into a reusable class for use in runtime async REvert Break cycle for lambda using field keyword with inferred return type (#79995) Simplify tests Simplify Fixup New extension Extensions: add SyntaxGenerator support and AssociatedExtensionImplementation API (#80170) In process Support 'add using' for modern extension methods ...
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.
Done with review pass (commit 15)
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.
LGTM Thanks (commit 15)
* upstream/main: (206 commits) Remove bogus xlf tag (#80357) Fix missing type argument checks Add tests Use dotnet run file for generating compiler code (#80248) Only restore based on assets file changes if the actual content changed (#80341) make expressionbody analyzer use semanticspananalysis (#80339) [EnC] Use ignoreAssemblyKey: false to resolve symbol keys (#80342) Properly populate ExportedType metadata table in presence of extension block. (#80311) Propagate `params` to lambdas and local functions (#79880) Change 17.15 to VS 2026 preview. (#80325) Improve virtualproject support for older .NET SDKs (#80324) Update dependencies from https://github.com/dotnet/dotnet build 283666 (#80344) Update dependencies from https://github.com/dotnet/arcade build 20250917.6 (#80343) Simplifying Fix tests Fix tests Fix introduce variable placement in top level statements move to immutable types in signature help move to immutable types in signature help Fix check ...
@jjonescz any other comments? |
This PR removes the CS1998 (WRN_AsyncLacksAwaits) warning entirely from the C# compiler and removes all dependent C# infrastructure, based on the team decision that this warning is no longer beneficial.
Relates to test plan #75960.
Closes #77001.
Changes Made
Core compiler changes:
Infrastructure cleanup:
CSharpRemoveAsyncModifierCodeFixProvider
andCSharpMakeMethodSynchronousCodeFixProvider
) and their testsTest updates:
The warning infrastructure is now fully disabled for C# and won't be used again. Abstract base classes remain available for Visual Basic, which may continue to benefit from these diagnostics.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.