Skip to content

auto-import prefers package import over relative path #26044

@ajafff

Description

@ajafff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions