-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Milestone
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.90.0-insider (a48f464)
- OS Version: macOS Sonoma 14.4.1
If an npm package re-exports type definitions from nested paths, VS Code suggests wrong import paths for default exports. I noticed the issue when I tried to use packages from Atlassian's design system (e.g., @atlaskit/button
), but I was able to reproduce it with a minimal example (see below).
Steps to Reproduce:
- Clone this issue reproduction repository: https://github.com/klaussner/vs-code-import-issue
- Follow the steps in
README.md
.
The video below shows how VS Code suggests the correct path for the named export, but the wrong path for the default export. The expected result is import defaultExport, { namedExport } from "example";
.
VS.Code.import.issue.mp4
Metadata
Metadata
Assignees
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.