Skip to content

ts Move to a new file doesn't respect importModuleSpecifier setting #59649

Closed
@tjx666

Description

@tjx666

@mjbvz @justschen

reproduce repo: https://github.com/tjx666/ts-none-relative-reproduce

a little like microsoft/vscode#160304.

setting:

{
    "typescript.tsdk": "node_modules/typescript/lib",
    "javascript.preferences.importModuleSpecifier": "non-relative",
    "typescript.preferences.importModuleSpecifier": "non-relative"
}

problem

image image

expect

image

screen recoding

2024-08-15.18.17.13.mov

versions

"typescript": "^5.5.4"
Version: 1.92.1 (Universal)
Commit: eaa41d57266683296de7d118f574d0c2652e1fc4
Date: 2024-08-07T20:16:39.455Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions