Skip to content

Use existing star import instead of adding new import #19628

Closed
@mjbvz

Description

@mjbvz

From @chrmarti on October 31, 2017 16:58

  • VSCode Version: Code - Insiders 1.18.0-insider (81cca6c, 2017-10-31T06:24:27.011Z)
  • OS Version: Linux x64 3.13.0-108-generic
  • Extensions: none

Testing #37177

Steps to Reproduce:

  1. Use a global completion when a star import is already in the file:
import * as b from "./bar";

foo|
  1. Result:
import * as b from "./bar";
import { foo } from "./bar";

foo|
  1. It would make sense to reuse the existing import.

Copied from original issue: microsoft/vscode#37314

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issueSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions