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

Suggestion diagnostic for 'await using' and 'await foreach' #43032

Open
jnm2 opened this issue Apr 2, 2020 · 0 comments
Open

Suggestion diagnostic for 'await using' and 'await foreach' #43032

jnm2 opened this issue Apr 2, 2020 · 0 comments

Comments

@jnm2
Copy link
Contributor

jnm2 commented Apr 2, 2020

Version Used: VS16.5.2

ReSharper has this. It's a super nice way to be made aware when methods you're already using can now be awaited in await using or await foreach statements.

// ℹ Use 'await using'
using var stream = File.Create(path);

Result:

await using var stream = File.Create(path);
@jinujoseph jinujoseph added Feature Request IDE-CodeStyle Built-in analyzers, fixes, and refactorings labels Apr 8, 2020
@jinujoseph jinujoseph added this to Backlog in IDE: InternalPriority via automation Apr 8, 2020
@jinujoseph jinujoseph moved this from Backlog to Priority 4 in IDE: InternalPriority Apr 8, 2020
@jinujoseph jinujoseph added this to the Backlog milestone Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request IDE-CodeStyle Built-in analyzers, fixes, and refactorings New Feature - Async Streams Async Streams
Development

No branches or pull requests

3 participants