@@ -20,11 +20,18 @@ extension AppDelegate {
20
20
let fm = FileManager . default
21
21
do {
22
22
let linksToMove = [ " swift " , " swiftc " , " swift-symbolgraph-extract " ,
23
- " swift-api-digester " , " swift-api-extract " , " swift- cache-tool" ]
23
+ " swift-api-digester " , " swift-cache-tool " ]
24
24
if sender. title == FrontendServer . State. unpatched. rawValue {
25
25
if !fm. fileExists ( atPath: FrontendServer . patched) ,
26
26
let feeder = Bundle . main
27
27
. url ( forResource: " swift-frontend " , withExtension: " sh " ) {
28
+ InjectionServer . error ( """
29
+ The Swift compiler of your current toolchain \
30
+ \( FrontendServer . unpatchedURL. path) will be \
31
+ replaced by a symbolic link to a script to \
32
+ capture all compilation commands. Use menu \
33
+ item " Unpatch Compiler " to revert this change.
34
+ """ )
28
35
try fm. moveItem ( at: FrontendServer . unpatchedURL,
29
36
to: FrontendServer . patchedURL)
30
37
try fm. createSymbolicLink ( at: FrontendServer
@@ -34,13 +41,6 @@ extension AppDelegate {
34
41
try fm. removeItem ( at: link)
35
42
symlink ( " swift-frontend.save " , link. path)
36
43
}
37
- InjectionServer . error ( """
38
- The Swift compiler of your current toolchain \
39
- \( FrontendServer . unpatchedURL. path) has been replaced \
40
- by a symbolic link to a script to capture all \
41
- compilation commands. Use menu item " Unpatch \
42
- Compiler " to revert this change.
43
- """ )
44
44
}
45
45
} else if fm. fileExists ( atPath: FrontendServer . patched) {
46
46
try ? fm. removeItem ( at: FrontendServer . unpatchedURL)
0 commit comments