forked from github/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuiltinExtension.swift
More file actions
25 lines (19 loc) · 862 Bytes
/
BuiltinExtension.swift
File metadata and controls
25 lines (19 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import CopilotForXcodeKit
import Foundation
import Preferences
import ConversationServiceProvider
import TelemetryServiceProvider
public typealias CopilotForXcodeCapability = CopilotForXcodeExtensionCapability & CopilotForXcodeChatCapability & CopilotForXcodeTelemetryCapability
public protocol CopilotForXcodeChatCapability {
var conversationService: ConversationServiceType? { get }
}
public protocol CopilotForXcodeTelemetryCapability {
var telemetryService: TelemetryServiceType? { get }
}
public protocol BuiltinExtension: CopilotForXcodeCapability {
/// An id that let the extension manager determine whether the extension is in use.
var suggestionServiceId: BuiltInSuggestionFeatureProvider { get }
/// It's usually called when the app is about to quit,
/// you should clean up all the resources here.
func terminate()
}