forked from intitni/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXPCServiceProtocol.swift
More file actions
48 lines (43 loc) · 1.64 KB
/
XPCServiceProtocol.swift
File metadata and controls
48 lines (43 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import CopilotModel
import Foundation
@objc(XPCServiceProtocol)
public protocol XPCServiceProtocol {
func checkStatus(withReply reply: @escaping (String?, Error?) -> Void)
func signInInitiate(withReply reply: @escaping (String?, String?, Error?) -> Void)
func signInConfirm(
userCode: String,
withReply reply: @escaping (String?, String?, Error?) -> Void
)
func signOut(withReply reply: @escaping (String?, Error?) -> Void)
func getVersion(withReply reply: @escaping (String?, Error?) -> Void)
func getSuggestedCode(
editorContent: Data,
withReply reply: @escaping (_ updatedContent: Data?, Error?) -> Void
)
func getNextSuggestedCode(
editorContent: Data,
withReply reply: @escaping (_ updatedContent: Data?, Error?) -> Void
)
func getPreviousSuggestedCode(
editorContent: Data,
withReply reply: @escaping (_ updatedContent: Data?, Error?) -> Void
)
func getSuggestionAcceptedCode(
editorContent: Data,
withReply reply: @escaping (_ updatedContent: Data?, Error?) -> Void
)
func getSuggestionRejectedCode(
editorContent: Data,
withReply reply: @escaping (_ updatedContent: Data?, Error?) -> Void
)
func getRealtimeSuggestedCode(
editorContent: Data,
withReply reply: @escaping (Data?, Error?) -> Void
)
func setAutoSuggestion(enabled: Bool, withReply reply: @escaping (Error?) -> Void)
func prefetchRealtimeSuggestions(
editorContent: Data,
withReply reply: @escaping () -> Void
)
func getXPCServiceVersion(withReply reply: @escaping (String, String) -> Void)
}