Skip to content

Conversation

navya9singh
Copy link
Member

Fixes #59092. This pr makes getPasteEdits not return any imports if they are not needed by checking if the range of the copied text, lies within the range of the node required to generate an import.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jul 1, 2024
@navya9singh navya9singh requested a review from andrewbranch July 1, 2024 20:37
@navya9singh navya9singh merged commit 7bd7dfc into microsoft:main Jul 1, 2024
@sandersn sandersn removed this from PR Backlog Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getPasteEdits adds import when not needed
3 participants