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
59 lines (55 loc) · 1.99 KB
/
XPCServiceProtocol.swift
File metadata and controls
59 lines (55 loc) · 1.99 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
49
50
51
52
53
54
55
56
57
58
59
import SuggestionModel
import Foundation
@objc(XPCServiceProtocol)
public protocol XPCServiceProtocol {
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 getPromptToCodeAcceptedCode(
editorContent: Data,
withReply reply: @escaping (_ updatedContent: Data?, Error?) -> Void
)
func chatWithSelection(
editorContent: Data,
withReply reply: @escaping (Data?, Error?) -> Void
)
func promptToCode(
editorContent: Data,
withReply reply: @escaping (Data?, Error?) -> Void
)
func customCommand(
id: String,
editorContent: Data,
withReply reply: @escaping (Data?, Error?) -> Void
)
func toggleRealtimeSuggestion(withReply reply: @escaping (Error?) -> Void)
func prefetchRealtimeSuggestions(
editorContent: Data,
withReply reply: @escaping () -> Void
)
func getXPCServiceVersion(withReply reply: @escaping (String, String) -> Void)
func getXPCServiceAccessibilityPermission(withReply reply: @escaping (Bool) -> Void)
func postNotification(name: String, withReply reply: @escaping () -> Void)
func performAction(name: String, arguments: String, withReply reply: @escaping (String) -> Void)
}