Skip to content

Add a quick fix to import libraries with prefixes when the library name matches #41515

Closed
@bwilkerson

Description

@bwilkerson

Given the following code:

var min = math.min(0, 1);

there should be a quick fix to define math by importing dart:math. This should minimally work for all of the dart: libraries, but it would also be good if it worked for packages that are already listed as dependencies. For example,

var current = path.current;

should have a quick fix to import package:path/path.dart.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestcontributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)devexp-quick-fixIssues with analysis server (quick) fixeslegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions