Skip to content

Don't allow renaming elements from node_modules - #42434

Closed
Jean Pierre (jeanp413) wants to merge 1 commit into
microsoft:mainfrom
jeanp413:dont-rename-from-node_modules
Closed

Jean Pierre (jeanp413) wants to merge 1 commit into
microsoft:mainfrom
jeanp413:dont-rename-from-node_modules

Conversation

@jeanp413

Copy link
Copy Markdown
Contributor

Fixes #42367

The new added test it's currently failing so I'm marking this as a draft in the meantime.
In the test, program.isSourceFileFromExternalLibrary is returning false for /node_modules/lib/index.d.ts, can you point to me what I'm missing?

Works fine while testing inside vscode
ts_rename_from_node_modules

@sandersn

Copy link
Copy Markdown
Member

To help with PR housekeeping, I'm going to close this draft PR. It's pretty old.

@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Rename Symbol" (F2) doesn't ignore node_modules

3 participants