Skip to content

getPasteEdits returns edits even when no imports are addedΒ #58934

Closed
@mjbvz

Description

@mjbvz

πŸ”Ž 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

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