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
25 lines (24 loc) · 1.07 KB
/
SuggestionCommandHandler.swift
File metadata and controls
25 lines (24 loc) · 1.07 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
import CopilotModel
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 rejectSuggestion(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func acceptSuggestion(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func presentRealtimeSuggestions(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func generateRealtimeSuggestions(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func explainSelection(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func chatWithSelection(editor: EditorContent) async throws -> UpdatedContent?
@ServiceActor
func promptToCode(editor: EditorContent) async throws -> UpdatedContent?
}