Closed isidorn closed 1 year ago
I'd argue this is not a bug, since this is how isort works - it will wrap overly long lines in addition to sorting them. You may choose between different wrap flavours, or disable wrapping on a per-line basis with # NOQA
.
It's all right there in isort's readme - https://github.com/timothycrosley/isort#multi-line-output-modes
Then I argue that Sort Imports is not a good label for this action. Shuold this action be called Format Imports. Since that seems to be what the action is doing at the end.
Organize Imports could also be a an option (looking at vscode's generic source.organizeImports
action).
Yes, organize imports makes perfect sense.
Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.
We should use source.organizeImports to "Organize Imports" instead
This is done via the isort
extension.
Have the following imports
Do a context menu > Sort Imports
This is the result. I would expect them just to be sorted, not formated 🐛