Closed alexdashly closed 9 months ago
@alexdashly Do you have any other import organizer installed like ruff
? This happens if you have more than one installed. In that case you have to be more explicit in your settings like "source.organizeImports.isort": "explicit"
(to use isort) or "source.organizeImports.ruff": "explicit"
(to use ruff)
Ah, that would do it! Makes total sense. All fixed now. Thanks.
Hi,
I have a very basic python file I was able to replicate this on. Here it is in its base state:
Here is my
settings.json
file:If I add lines above
test = ...
(in an unsaved state looks like this)then when I save and everything runs, lines end up getting deleted
I can fix this behavior by commenting out
"source.organizeImports": "explicit"
.I appear to be on the latest version of the extension but I don't know where to go to show the specific version info.