@@ -11,7 +11,7 @@ public struct AsyncXPCService {
1111 self . service = service
1212 }
1313
14- public func checkStatus( ) async throws -> CopilotStatus {
14+ public func checkStatus( ) async throws -> GitHubCopilotAccountStatus {
1515 try await withXPCServiceConnected ( connection: connection) {
1616 service, continuation in
1717 service. checkStatus { status, error in
@@ -20,8 +20,8 @@ public struct AsyncXPCService {
2020 return
2121 }
2222 continuation. resume (
23- status. flatMap ( CopilotStatus . init ( rawValue: ) )
24- ?? CopilotStatus . notAuthorized
23+ status. flatMap ( GitHubCopilotAccountStatus . init ( rawValue: ) )
24+ ?? GitHubCopilotAccountStatus . notAuthorized
2525 )
2626 }
2727 }
@@ -63,7 +63,7 @@ public struct AsyncXPCService {
6363 }
6464
6565 public func signInConfirm( userCode: String ) async throws
66- -> ( username: String , status: CopilotStatus )
66+ -> ( username: String , status: GitHubCopilotAccountStatus )
6767 {
6868 try await withXPCServiceConnected ( connection: connection) {
6969 service, continuation in
@@ -74,13 +74,13 @@ public struct AsyncXPCService {
7474 }
7575 continuation. resume ( (
7676 username ?? " " ,
77- status. flatMap ( CopilotStatus . init ( rawValue: ) ) ?? . alreadySignedIn
77+ status. flatMap ( GitHubCopilotAccountStatus . init ( rawValue: ) ) ?? . alreadySignedIn
7878 ) )
7979 }
8080 }
8181 }
8282
83- public func signOut( ) async throws -> CopilotStatus {
83+ public func signOut( ) async throws -> GitHubCopilotAccountStatus {
8484 try await withXPCServiceConnected ( connection: connection) {
8585 service, continuation in
8686 service. signOut { finishstatus, error in
@@ -89,7 +89,7 @@ public struct AsyncXPCService {
8989 return
9090 }
9191 continuation
92- . resume ( finishstatus. flatMap ( CopilotStatus . init ( rawValue: ) ) ?? . notSignedIn)
92+ . resume ( finishstatus. flatMap ( GitHubCopilotAccountStatus . init ( rawValue: ) ) ?? . notSignedIn)
9393 }
9494 }
9595 }
0 commit comments