Skip to content

Commit 638b6d5

Browse files
committed
Adjust the property workspacePool
1 parent 95b9928 commit 638b6d5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Core/Sources/Service/Service.swift

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

30-
@WorkspaceActor
31-
let workspacePool: WorkspacePool
30+
@Dependency(\.workspacePool) var workspacePool
3231
@MainActor
3332
public let guiController = GraphicalUserInterfaceController()
3433
public let realtimeSuggestionController = RealtimeSuggestionController()
@@ -65,7 +64,7 @@ public final class Service {
6564
workspacePool.registerPlugin {
6665
BuiltinExtensionWorkspacePlugin(workspace: $0)
6766
}
68-
self.workspacePool = workspacePool
67+
6968
globalShortcutManager = .init(guiController: guiController)
7069
keyBindingManager = .init(
7170
workspacePool: workspacePool,

0 commit comments

Comments
 (0)