Skip to content

Commit 34e6cee

Browse files
committed
Merge branch 'main' into develop
2 parents b75cbcf + 55bdfd0 commit 34e6cee

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Core/Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ let package = Package(
382382
extension [Target.Dependency] {
383383
func pro(_ targetNames: [String]) -> [Target.Dependency] {
384384
if isProIncluded() {
385+
// include the pro package
385386
return self + targetNames.map { Target.Dependency.product(name: $0, package: "Pro") }
386387
}
387388
return self
@@ -391,6 +392,7 @@ extension [Target.Dependency] {
391392
extension [Package.Dependency] {
392393
var pro: [Package.Dependency] {
393394
if isProIncluded() {
395+
// include the pro package
394396
return self + [.package(path: "../Pro")]
395397
}
396398
return self

Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,13 @@ struct GUI: ReducerProtocol {
108108
Reduce { state, action in
109109
switch action {
110110
case .start:
111+
#if canImport(ChatTabPersistent)
111112
return .run { send in
112-
#if canImport(ChatTabPersistent)
113113
await send(.persistent(.restoreChatTabs))
114-
#endif
115114
}
115+
#else
116+
return .none
117+
#endif
116118

117119
case let .openChatPanel(forceDetach):
118120
return .run { send in

Core/Sources/Service/Service.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import Foundation
2+
#if canImport(KeyBindingManager)
23
import KeyBindingManager
4+
#endif
35
import 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
}

0 commit comments

Comments
 (0)