Skip to content

auto-import prefers package import over relative path #26044

Closed

Description

This is a follow-up on #25279, because one of the cases was not fixed (or regressed since then?)

TypeScript Version: 3.1.0-dev.20180728

Search Terms:

Code

  • clone https://github.com/fimbullinter/wotan
  • yarn
    • creates a symlink node_modules/@fimbul/<name> for each packages/<name>
  • create a new file packages/mimir/src/test.ts
  • type isAsyncFunction and use auto-import from the completion list or quickfix

Expected behavior:

import { isAsyncFunction } from "./utils";

isAsyncFunction

Actual behavior:

import { isAsyncFunction } from "@fimbul/mimir/src/utils";

isAsyncFunction

Related Issues:
#25279

Activity

  1. netanelgilad commented on Jul 29, 2018

    @netanelgilad

    Experiencing this as well. My specific scenario is described on #26047

  2. ghost added a commit that references this issue on Jul 30, 2018
  3. ghost closed this as completedon Aug 6, 2018
  4. ghost added
    FixedA PR has been merged for this issue
    on Aug 6, 2018
  5. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions