Skip to content

autocomplete for import path ends up with .dart.dart #26083

@jmesserly

Description

@jmesserly

It's pretty common to change an import:

import 'path/to/foo_some_long_name.dart';

if I double click foo and start typing, I will get a new autocompletion (awesome!) however once I select it I end up with invalid code:

import 'path/to/bar.dart.dart'; // OOPS

Autocomplete should understand it needs to replace the full path string to the end, not stop at just what I have selected.

Minor issue, but over time it adds up since it happens every single time you edit an import using autocompletion.

(this is in IntelliJ/WebStorm, FWIW)

Metadata

Metadata

Assignees

No one assigned

    Labels

    devexp-completionIssues with the analysis server's code completion featurelegacy-area-analyzerUse area-devexp instead.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions