File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 37
37
" $swiftc"
38
38
],
39
39
"type" : " swift"
40
+ },
41
+ {
42
+ "allowWritingToPackageDirectory" : true ,
43
+ "args" : [],
44
+ "command" : " format-source-code" ,
45
+ "label" : " Run swift-format" ,
46
+ "type" : " swift-plugin" ,
40
47
}
41
48
],
42
49
"version" : " 2.0.0"
Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ var dependencies: [Package.Dependency] {
358
358
. package ( url: " https://github.com/apple/swift-argument-parser.git " , from: " 1.2.2 " ) ,
359
359
. package ( url: " https://github.com/apple/swift-syntax.git " , branch: relatedDependenciesBranch) ,
360
360
. package ( url: " https://github.com/apple/swift-crypto.git " , from: " 3.0.0 " ) ,
361
+ // Not a build dependency. Used so the "Format Source Code" command plugin can be used to format sourcekit-lsp
362
+ . package ( url: " https://github.com/apple/swift-format.git " , branch: relatedDependenciesBranch) ,
361
363
]
362
364
}
363
365
}
You can’t perform that action at this time.
0 commit comments