vscode-swiftformat icon indicating copy to clipboard operation
vscode-swiftformat copied to clipboard

add windows suport

Open insinfo opened this issue 8 months ago • 4 comments

I have swift 5.9 and swiftformat 0.52.7 installed but when I use the format option in VS Code it deletes all source code

image

image

image

insinfo avatar Oct 08 '23 22:10 insinfo

Thanks for the report! As I don't have access to a windows system, I am unable to reproduce your problem.

As debugging windows issues requires lots of ping pong with a tester, I would appreciate a pull request by any volunteer.

vknabel avatar Oct 09 '23 07:10 vknabel

Still a bug. It deletes all the source code when trying to autoformat on save.

MChriss12 avatar Nov 26 '23 18:11 MChriss12

Correct. I haven’t done anything, because as mentioned, I don’t have access to a device running windows.

I would appreciate a pull request by any volunteer.

Alternatively I could simply disable all formatting on windows.

vknabel avatar Nov 27 '23 06:11 vknabel

Take a look at https://github.com/vknabel/vscode-apple-swift-format/issues/40#issuecomment-1870430614 same fix works for swiftformat too

oskargargas avatar Dec 27 '23 16:12 oskargargas