Skip to content

Commit 9fd0312

Browse files
committed
Add extension identifier to builtin extensions
1 parent 38de4bc commit 9fd0312

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Tool/Sources/BuiltinExtension/BuiltinExtension.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import Preferences
66
public protocol BuiltinExtension: CopilotForXcodeExtensionCapability {
77
/// An id that let the extension manager determine whether the extension is in use.
88
var suggestionServiceId: BuiltInSuggestionFeatureProvider { get }
9+
/// An identifier for the extension.
10+
var extensionIdentifier: String { get }
911

1012
/// All chat builders provided by this extension.
1113
var chatTabTypes: [any ChatTab.Type] { get }

Tool/Sources/CodeiumService/CodeiumExtension.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import Workspace
1212
}
1313

1414
public final class CodeiumExtension: BuiltinExtension {
15+
public var extensionIdentifier: String { "com.codeium" }
16+
1517
public var suggestionServiceId: Preferences.BuiltInSuggestionFeatureProvider { .codeium }
1618

1719
public let suggestionService: CodeiumSuggestionService?

Tool/Sources/GitHubCopilotService/GitHubCopilotExtension.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import Preferences
77
import Workspace
88

99
public final class GitHubCopilotExtension: BuiltinExtension {
10+
public var extensionIdentifier: String { "com.github.copilot" }
11+
1012
public var suggestionServiceId: Preferences.BuiltInSuggestionFeatureProvider { .gitHubCopilot }
1113

1214
public let suggestionService: GitHubCopilotSuggestionService?

0 commit comments

Comments
 (0)