Imports get removed on save
jamal7887 opened this issue · 4 comments
jamal7887 commented
The import organizer removes imports from Typescript files upon saving, but only does this in some files.
simonhaenisch commented
It's a feature not a bug 😅
intgr commented
Not sure what the OP meant, but I experienced a situation where all imports disappeared from one file, making it invalid. But it has not happened again.
andrew-boyd commented
simonhaenisch commented
@andrew-boyd are you using the latest version 4.0.0
with the new vue tooling? Would you be able to open a pull request that adds this kind of code as a test case to this repo? You can put it here: https://github.com/simonhaenisch/prettier-plugin-organize-imports/blob/master/test/vue.js