Skip to content

Create a quick fix for @awaitNotRequired #60641

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

Open
bsutton opened this issue Apr 29, 2025 · 1 comment
Open

Create a quick fix for @awaitNotRequired #60641

bsutton opened this issue Apr 29, 2025 · 1 comment
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-quick-fix Issues with analysis server (quick) fixes P3 A lower priority bug or feature request

Comments

@bsutton
Copy link

bsutton commented Apr 29, 2025

We now have an annotation to suppress the discared_future lint when the annotated function correctly manages the future.

#46218

We need a way to surface the fact that the annotation is available.

One possible solution is to add an additional quick fix for discared_future and unawaited_future that adds the annotation to the called function.

I'm not certain if there are any quick fixes that work to change code located in another source file so that may be a show stopper.

Of course if the called function is an external package then we wouldn't want to show the quick fix.

@bsutton bsutton added the area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. label Apr 29, 2025
@bwilkerson bwilkerson added devexp-quick-fix Issues with analysis server (quick) fixes P2 A bug or feature request we're likely to work on labels May 2, 2025
@bwilkerson
Copy link
Member

@srawlins

@bwilkerson bwilkerson added P3 A lower priority bug or feature request and removed P2 A bug or feature request we're likely to work on labels May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-quick-fix Issues with analysis server (quick) fixes P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

2 participants