We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7fd64d commit d30d5b2Copy full SHA for d30d5b2
1 file changed
CommunicationBridge/main.swift
@@ -1,21 +1 @@
1
-import AppKit
2
-import Foundation
3
-import Logger
4
-
5
-class AppDelegate: NSObject, NSApplicationDelegate {}
6
7
-let bundleIdentifierBase = Bundle(url: Bundle.main.bundleURL.appendingPathComponent(
8
- "GitHub Copilot For Xcode Extension.app"
9
-))?.object(forInfoDictionaryKey: "BUNDLE_IDENTIFIER_BASE") as? String ?? "com.github.CopilotForXcode"
10
11
-let serviceIdentifier = bundleIdentifierBase + ".CommunicationBridge"
12
-let appDelegate = AppDelegate()
13
-let delegate = ServiceDelegate()
14
-let listener = NSXPCListener(machServiceName: serviceIdentifier)
15
-listener.delegate = delegate
16
-listener.resume()
17
-let app = NSApplication.shared
18
-app.delegate = appDelegate
19
-Logger.communicationBridge.info("Communication bridge started")
20
-app.run()
21
+close and clear all
0 commit comments