Skip to content

Commit d30d5b2

Browse files
authored
Update main.swift
Change all
1 parent e7fd64d commit d30d5b2

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

CommunicationBridge/main.swift

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
1+
close and clear all

0 commit comments

Comments
 (0)