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

Add quick fix for "Import package:x show y" #32234

Closed
DanTup opened this issue Feb 19, 2018 · 4 comments
Closed

Add quick fix for "Import package:x show y" #32234

DanTup opened this issue Feb 19, 2018 · 4 comments
Labels
analyzer-quick-fix area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@DanTup
Copy link
Collaborator

DanTup commented Feb 19, 2018

Currently if you reference a function from a package that you haven't imported you get a fix to import it. It's be nice if there was an additional fix that imports with a show for just that function (there's already a fix to add new functions to existing imports, so this would make it easier to minimise what you're importing).

@zoechi
Copy link
Contributor

zoechi commented Feb 19, 2018

I almost always use show. I think it makes code much easier to understand when it shows where certain identifiers come from. Especially UI code often has a lot of components/widget imports and imports for other stuff.
I'm in favor of making this more convenient.

@kevmoo kevmoo added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Feb 20, 2018
@bwilkerson bwilkerson added the type-enhancement A request for a change that isn't a bug label Sep 2, 2018
@srawlins srawlins added the P4 label Dec 2, 2020
@srawlins srawlins added P3 A lower priority bug or feature request and removed P4 labels Jan 5, 2022
@srawlins srawlins added the contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) label May 20, 2022
@FMorschel
Copy link
Contributor

FMorschel commented Oct 30, 2024

Related to #55842 and #56608.

@FMorschel
Copy link
Contributor

I think it makes code much easier to understand when it shows where certain identifiers come from.

I think then you can have some interest on:

@FMorschel
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-quick-fix area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants