Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moduleResolution Bundler and importModuleSpecifierEnding #60478

Open
initplatform opened this issue Nov 9, 2024 · 1 comment
Open

moduleResolution Bundler and importModuleSpecifierEnding #60478

initplatform opened this issue Nov 9, 2024 · 1 comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Milestone

Comments

@initplatform
Copy link

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

Version: 1.95.1 (Universal)
Commit: 65edc4939843c90c34d61f4ce11704f09d3e5cb6
Date: 2024-10-31T05:14:54.222Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin arm64 23.4.0

My project is Node/Fastify written in typescript.

Steps to Reproduce:

  1. Set the compiler compiler options in a tsconfig:
{
    "module": "ESNext",
    "target": "ESNext",
    "moduleResolution": "Bundler"
}

The suggested paths to import, for example, are:

Image

  1. Change to "moduleResolution": "Node" and then reload VSCode.

The suggested paths to import are now:

Image

I want the QuickFix Suggestions from 2. while using "moduleResolution": "Bundler"

I have these settings:

{
    "javascript.preferences.importModuleSpecifierEnding": "minimal",
    "javascript.preferences.importModuleSpecifier": "non-relative"

    "typescript.preferences.importModuleSpecifierEnding": "minimal",
    "typescript.preferences.importModuleSpecifier": "non-relative",
}
@initplatform
Copy link
Author

@mjbvz mjbvz transferred this issue from microsoft/vscode Nov 11, 2024
@mjbvz mjbvz removed their assignment Nov 11, 2024
@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Nov 12, 2024
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

3 participants