vknabel / vscode-apple-swift-format

VS Code extension for formatting Swift code with apple/swift-format.
https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-apple-swift-format
MIT License
31 stars 7 forks source link

Default location: swiftlint.path #17

Closed Zingam closed 1 year ago

Zingam commented 2 years ago

The extensions after reset appear to set the default locations to

"apple-swift-format.path": "/usr/local/bin/swift-format"
"swiftlint.path": "/usr/local/bin/swiftlint"

I think it's more reasonable and portable to set the default values without the path and to expect to find them in the search path

"apple-swift-format.path": "swift-format"
"swiftlint.path": "swiftlint"
vknabel commented 1 year ago

Hey @Zingam. Thanks for your suggestion.

I decided to allow user to set the paths as Strings, but also as array of strings. The default will be ["/usr/bin/env", "swift$TOOL"]. I will release all extensions in one go later.

vknabel commented 1 year ago

Has been released: