vscode-swiftformat
vscode-swiftformat copied to clipboard
SwiftFormat for VS Code
Sometimes when saving a file I get the following dialog appearing for at least a minute. While this dialog is displayed most operations in VSCode do not work. The only...
Receiving following error. SwiftFormat failed. error: Cannot combine stdin with other file inputs. ![image](https://github.com/vknabel/vscode-swiftformat/assets/2313133/cc24ca02-e039-429a-94b9-d40f4f73c9ec)
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](https://github.com/vknabel/vscode-swiftformat/assets/12227024/35bf7ebc-9a76-4788-8332-7a2d09fcc21c) ![image](https://github.com/vknabel/vscode-swiftformat/assets/12227024/d35bc0fe-2aa1-4d65-a745-26a14d9c3bd2) ![image](https://github.com/vknabel/vscode-swiftformat/assets/12227024/c02db51b-e59f-4257-a3da-d48263f7a26f)
Currently this extension reads the editor setting for the indentation and passes it to swiftformat. This behaviour might make sense if no indentation rules were provided in the config and...