Skip to content

tsconfig's compilerOptions.baseUrl breaks "typescript.preferences.importModuleSpecifier": "shortest" logic #56382

@varmiral

Description

@varmiral

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.84.2
  • Typescript Version: 5.2.2
  • OS Version: Windows 10

Steps to Reproduce:

  1. Clone https://github.com/varmiral/tsc-autoimport.git
  2. Open src/b/b.ts
  3. Open "import suggestion menu" for a
  4. Look at the path: "longtitle/a/a"
  5. In tsconfig.json comment paths option
  6. Path become "src/a/a"
  7. Also comment baseUrl option
  8. See expected path "../a/a"

Metadata

Metadata

Assignees

No one assigned

    Labels

    UnactionableThere isn't something we can do with this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions