forked from intitni/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSuggestionCommandHandler.swift
More file actions
33 lines (32 loc) · 1.43 KB
/
Copy pathSuggestionCommandHandler.swift
File metadata and controls
33 lines (32 loc) · 1.43 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
import SuggestionBasic
import XPCShared
protocol SuggestionCommandHandler {
@ServiceActor
func presentSuggestions(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func presentNextSuggestion(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func presentPreviousSuggestion(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func presentNextSuggestionGroup() async throws
@ServiceActor
func presentPreviousSuggestionGroup() async throws
@ServiceActor
func rejectSuggestion(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func acceptSuggestionLine(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func acceptSuggestionNextWord(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func acceptSuggestion(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func acceptPromptToCode(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func presentRealtimeSuggestions(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func generateRealtimeSuggestions(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func promptToCode(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func customCommand(id: String, editor: EditorContent) async throws -> UpdatedContent?
}