Skip to content

Imports auto-update replaces relative path with alias-path #28488

@wclr

Description

@wclr
  • I've renamed file ChartWheel.ts -> ChartWheel2.ts
  • Vscode/ts updated import relative paths like ./ChartWheel -> ~/client/cycles/ChartArea/ChartWheel2
  • I would expect ./ChartWheel -> ./ChartWheel2
    tsconfig compiler options have following config for paths:
   "baseUrl": ".",
    "paths": {
      "~/*": ["./apps/*"],
    }

So is it possible for vscode/ts to keep existing import path "style" the same while updating imports?

btw is it more correct to create issues on auto-import in TS repo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions