Cleanup of unused imports mangles them #1015
Labels
A-Linter
Area: linter
A-LSP
Area: language server protocol
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
The following file has a bunch of unused imports: https://share.cleanshot.com/BGMXFDqb
Saving it ends up like this: https://share.cleanshot.com/KM1tSmWZ
But it does work for just one like this https://share.cleanshot.com/WcB9RLBR
Or like this: https://share.cleanshot.com/KTx3wrC3
And it fails for the combination of the two working ones above https://share.cleanshot.com/wLZry1GL
In the CBS template, using the commandline, it does not break
In my own project using the commandline it also works
With the vscode extension, it breaks.
Expected result
Do not break
Code of Conduct
The text was updated successfully, but these errors were encountered: