Closed JCKodel closed 1 year ago
Hi. Thank you for your detailed feedback. I'm working on an addition that'll fix both the issues you mentioned here as well as in #48. But please bear with me because I'm sick as heck right now :mask:
So the way I plan on supporting this is to make it such that when an import is detected, any lines above it and below it which are not other imports or line breaks will also be grabbed as part of that import's raw body, but the actual sorting will only be done by using the import's body still.
I'm not 100% sure on what you mean by "ignore certain files". Can you explain that a bit more?
I'm not 100% sure on what you mean by "ignore certain files". Can you explain that a bit more?
The VS plugin DartImport has an option to ignore certain glob patterns, but I think this will not be useful here, so, please, ignore that bit =)
Just made a new release. You shouldn't be encountering any more problems. Let me know if you have any issues!
Before:
After sorting:
Both the comment and
@GenerateNiceMocks
are deleted when the sort occurs.This package should stick
//
and@
lines to the same place they were before.Or, at least, give us some option to ignore certain files, such as: