vknabel / vscode-swiftformat

SwiftFormat for VS Code
https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-swiftformat
MIT License
39 stars 7 forks source link

Better handling of indentation #15

Open vknabel opened 3 years ago

vknabel commented 3 years ago

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 if the user stays to vscode's defaults. But as it belongs to the responsibility of swiftformat, the current behaviour is misleading wrong.

=> The extension should tell VS Code which indentation rules it should follow by reading the provided config (if there is any).