File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11import Foundation
2+ #if canImport(KeyBindingManager)
23import KeyBindingManager
4+ #endif
35import Workspace
46
57@globalActor public enum ServiceActor {
@@ -24,10 +26,13 @@ public final class Service {
2426 public let guiController = GraphicalUserInterfaceController ( )
2527 public let realtimeSuggestionController = RealtimeSuggestionController ( )
2628 public let scheduledCleaner : ScheduledCleaner
29+ #if canImport(KeyBindingManager)
2730 let keyBindingManager : KeyBindingManager
31+ #endif
2832
2933 private init ( ) {
3034 scheduledCleaner = . init( workspacePool: workspacePool, guiController: guiController)
35+ #if canImport(KeyBindingManager)
3136 keyBindingManager = . init(
3237 workspacePool: workspacePool,
3338 acceptSuggestion: {
@@ -36,14 +41,17 @@ public final class Service {
3641 }
3742 }
3843 )
44+ #endif
3945 }
40-
46+
4147 @MainActor
4248 public func start( ) {
4349 scheduledCleaner. start ( )
4450 realtimeSuggestionController. start ( )
4551 guiController. start ( )
52+ #if canImport(KeyBindingManager)
4653 keyBindingManager. start ( )
54+ #endif
4755 DependencyUpdater ( ) . update ( )
4856 }
4957}
You can’t perform that action at this time.
0 commit comments