Skip to content

rename typescript default import will modify types under node_modules #48681

Closed
@tjx666

Description

@tjx666

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

image

  • VS Code Version: 1.67.0-insider
  • OS Version: macOS 12.3.1

Steps to Reproduce:

  1. set "typescript.preferences.useAliasesForRenames": false
  2. install package highlight.js
  3. write ts code : import hljs from 'highlight.js/lib/core';
  4. rename hljs to highlightJS

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