Skip to content

Commit 68ccf69

Browse files
committed
Add a button to reveal the extension app in finder
1 parent cc4ff83 commit 68ccf69

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Copilot for Xcode/LaunchAgentView.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,23 @@ struct LaunchAgentView: View {
9090
TextField("node", text: $nodePath)
9191
.textFieldStyle(.copilot)
9292
}
93+
94+
HStack {
95+
Button(action: {
96+
Task {
97+
let workspace = NSWorkspace.shared
98+
let url = Bundle.main.bundleURL
99+
.appendingPathComponent("Contents")
100+
.appendingPathComponent("XPCServices")
101+
.appendingPathComponent("CopilotForXcodeExtensionService.app")
102+
workspace.activateFileViewerSelecting([url])
103+
}
104+
}) {
105+
Text("Reveal Extension App in Finder")
106+
}
107+
108+
Spacer()
109+
}
93110
}
94111
}
95112
.buttonStyle(.copilot)

0 commit comments

Comments
 (0)