Closed trulysinclair closed 5 years ago
Which VS Code version are you using? VS Code 1.31 (current insiders) fixes a few edge cases that exist in the stable VS Code build.
Also, do you have organize imports on save and/or format on save enabled?
Closing as more information is needed to investigate this
When you have imports that are out of order, you get this warning: But if you format the document, your imports become scrambled like this: This stems from TSLint trying to
auto-fix
this issue, but for some reason it can't seem to get it right.I know this extension is expiremental, I'm not complaining at all. Just a simple heads up. Shift+CTRL+O easily fixes this, as long as you run it before formatting.