Skip to content

Paste with Edits causes self import #58716

@navya9singh

Description

@navya9singh

🔎 Search Terms

paste edits

🕗 Version & Regression Information

Nightly build with vscode insiders

⏯ Playground Link

No response

💻 Code

const k = 1;

console.log(k);
/**/

Copy console.log(k); and paste it at /**/ in the same file.

🙁 Actual behavior

export import { k } from "./b";

const k = 1;

console.log(k);console.log(k);

🙂 Expected behavior

const k = 1;

console.log(k);
console.log(k);

Additional information about the issue

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions