File tree Expand file tree Collapse file tree
Tool/Sources/GitHubCopilotService Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import BuiltinExtension
12import Combine
23import Dependencies
34import Foundation
5+ import GitHubCopilotService
46import SuggestionService
57import Toast
68import Workspace
@@ -39,6 +41,9 @@ public final class Service {
3941 private init ( ) {
4042 @Dependency ( \. workspacePool) var workspacePool
4143
44+ BuiltinExtensionManager . shared. setupExtensions ( [
45+ GitHubCopilotExtension ( workspacePool: workspacePool) ,
46+ ] )
4247 scheduledCleaner = . init( )
4348 workspacePool. registerPlugin {
4449 SuggestionServiceWorkspacePlugin ( workspace: $0) { SuggestionService . service ( ) }
@@ -84,7 +89,7 @@ public final class Service {
8489 } . store ( in: & cancellable)
8590 }
8691 }
87-
92+
8893 @MainActor
8994 public func prepareForExit( ) async {
9095 #if canImport(ProService)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public final class GitHubCopilotExtension: BuiltinExtension {
1313 let serviceLocator : ServiceLocator
1414 let _suggestionService : GitHubCopilotSuggestionService
1515
16- init ( workspacePool: WorkspacePool ) {
16+ public init ( workspacePool: WorkspacePool ) {
1717 self . workspacePool = workspacePool
1818 serviceLocator = . init( workspacePool: workspacePool)
1919 _suggestionService = . init( serviceLocator: serviceLocator)
You can’t perform that action at this time.
0 commit comments