-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathSuggestionCommandHandler.swift
More file actions
25 lines (24 loc) · 1.09 KB
/
SuggestionCommandHandler.swift
File metadata and controls
25 lines (24 loc) · 1.09 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 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 rejectSuggestion(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?
}