copy-with-imports icon indicating copy to clipboard operation
copy-with-imports copied to clipboard

TS <--> JS imports resolution

Open mhaidamashko opened this issue 9 months ago • 0 comments

Hi, thank you for your hard work and a cool extension. I saw in the code you have a check that both files should be the same extension type. But I have a huge legacy project that supports js/ts files and files there share the same import names. (so we're safe to copy those imports)

Is it possible to add a property to the extension that will allow us get imports between ts and js? I guess we just need to pass the property and skip that condition? https://github.com/stringham/copy-with-imports/blob/4463e9c668b6b0a73ff03eb7c8768e5b9d3a6bdf/src/extension.ts#L15 Thank you.

mhaidamashko avatar Apr 09 '25 09:04 mhaidamashko