pilat / vscode-importmagic

MIT License
36 stars 7 forks source link

Sorting moves future imports from the top #9

Closed agalazis closed 5 years ago

agalazis commented 5 years ago

Sorting moves future imports from the top. When I do an import all imports get reordered and future imports (from future import absolute_import) are moved further in the code. This is unintended behaviour

pilat commented 5 years ago

Yes, you're right. But my extension uses importmagic. This behaviour arises from there. I will try do something with that in the future.

pilat commented 5 years ago

Hi, I think I found a solution. New release has been using iSort for add and sort imports. I hope it will be better.

agalazis commented 5 years ago

I can confirm it works for now. Thank you for sorting this out until Microsoft python language server gets an update which seems long from now

agalazis commented 5 years ago

I guess this can close then