dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

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

Open DanTup opened 6 years ago

DanTup commented 6 years ago

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 commented 6 years ago

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.

FMorschel commented 1 week ago

Related to https://github.com/dart-lang/sdk/issues/55842 and https://github.com/dart-lang/sdk/issues/56608.

FMorschel commented 1 week ago

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: