Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getPasteEdits returns edits even when no imports are added #58934

Closed
mjbvz opened this issue Jun 19, 2024 · 0 comments Β· Fixed by #59189
Closed

getPasteEdits returns edits even when no imports are added #58934

mjbvz opened this issue Jun 19, 2024 · 0 comments Β· Fixed by #59189
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Jun 19, 2024

πŸ”Ž Search Terms

  • getPasteEdits
  • Paste with imports

πŸ•— Version & Regression Information

5.6.0-dev.20240619

⏯ Playground Link

No response

πŸ’» Code

a.ts

export interface Foo { }

export const foo: Foo = {}
  1. Copy export or const

Paste into b.ts

πŸ™ Actual behavior

A paste edit is still returned. This makes VS Code show paste UI even though applying the TS paste does nothing

πŸ™‚ Expected behavior

No paste edits are returned unless imports are added

Additional information about the issue

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants