Skip to content

Commit 2dfe71d

Browse files
committed
Fix workspacePool initialization
1 parent 638b6d5 commit 2dfe71d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Core/Sources/Service/Service.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import ProService
2727
public final class Service {
2828
public static let shared = Service()
2929

30-
@Dependency(\.workspacePool) var workspacePool
30+
let workspacePool = WorkspacePool()
3131
@MainActor
3232
public let guiController = GraphicalUserInterfaceController()
3333
public let realtimeSuggestionController = RealtimeSuggestionController()
@@ -44,7 +44,7 @@ public final class Service {
4444
var cancellable = Set<AnyCancellable>()
4545

4646
private init() {
47-
@Dependency(\.workspacePool) var workspacePool
47+
WorkspacePoolDependencyKey.liveValue = workspacePool
4848
CommandHandlerDependencyKey.liveValue = PseudoCommandHandler()
4949

5050
BuiltinExtensionManager.shared.setupExtensions([

0 commit comments

Comments
 (0)