question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support auto import for extension methods

See original GitHub issue

Currently if I want to call a extension method, I can’t just auto import with the quick fix.

numberFormat.formatAllowNull(widget.value)

In the example the method “formatAllowNull” is a extension method, but clicking on the bulb doesn’t provide the option to auto import it. Is this something that will be supported?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:23
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

23reactions
xzhorikxcommented, Jan 13, 2021

Still waiting for it to be implemented

7reactions
RakaAlriancommented, Apr 30, 2021

It’s been over a year, and this issue still exist☹

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto-import for Dart extension methods | by Felix Blaschke
Auto -import for Dart extension methods · Start typing “Superch” and press Ctrl + Space for autocomplete to trigger the import. · Remove...
Read more >
Flutter auto importing extension file is not working
This is a known issue, and is being tracked. As a workaround, typing the name of the extension should let you auto import...
Read more >
Support import auto-completion for extension functions ...
With "import MyObject.myMethod" at the top of the file, completion works as expected. There is similar problem with extension functions declared in companion ......
Read more >
Visual Studio Code Extension - Auto Import - YouTube
Visual Studio Code Extension - Auto ImportIn this video, we take a look at the Auto Import extension within Visual Studio Code.
Read more >
IntelliSense completion for types & extension methods
How to use IntelliSense completion for types and extension methods that you haven't imported yet with a `using` directive.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found