Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit f61cacc

Browse files
authored
feat: swiftformat.path local override support (#61)
1 parent 67e86b7 commit f61cacc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ let package = Package(
4747
| `swiftformat.enable` | `Bool` | `true` | Whether SwiftFormat should actually do something. |
4848
| `swiftformat.onlyEnableOnSwiftPMProjects` | `Bool` | `false` | Requires and uses a SwiftFormat as SwiftPM dependency. This will cause the extension to build the Swift package upon first launch. |
4949
| `swiftformat.onlyEnableWithConfig` | `Bool` | `false` | Only format if config present. |
50-
| `swiftformat.path` | `[String] or String` | `swiftformat` | The location of the globally installed SwiftFormat (resolved with the current path if only a filename). |
50+
| `swiftformat.path` | `[String] or String` | `["/usr/bin/env", "swiftformat"]` | The location of the installed SwiftFormat (global/workspace-relative). |
5151
| `swiftformat.options` | `[String]` | `[]` | Additional [options for SwiftFormat](https://github.com/nicklockwood/SwiftFormat#options). |
5252
| `swiftformat.configSearchPaths` | `[String]` | `[".swiftformat"]` | Possible paths for SwiftFormat config. |
5353

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "git",
77
"url": "https://github.com/vknabel/vscode-swiftformat"
88
},
9-
"version": "1.7.1",
9+
"version": "1.7.2",
1010
"license": "MIT",
1111
"author": {
1212
"name": "Valentin Knabel",
@@ -70,7 +70,7 @@
7070
},
7171
"swiftformat.path": {
7272
"description": "The location of your globally installed SwiftFormat.",
73-
"scope": "machine",
73+
"scope": "machine-overridable",
7474
"default": [
7575
"/usr/bin/env",
7676
"swiftformat"

0 commit comments

Comments
 (0)