An open API service indexing awesome lists of open source software.

https://github.com/ido-pluto/vscode-copy-with-import-issue


https://github.com/ido-pluto/vscode-copy-with-import-issue

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# About the issue

- When you copy code that relay on symbols that already exits in the target file - you will have duplicate imports.

- When you copy code to a comment it will also copy the imports.

## Demo

https://github.com/user-attachments/assets/8a2df326-a40f-41fb-93dc-cecedea283f7

## reproduce

```
npm install
```

Try to copy `mongoose.Model` from `thing.ts` to `copy.ts`.