We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7895aeb commit 6019536Copy full SHA for 6019536
1 file changed
Core/Sources/Service/AutoTrigger.swift
@@ -82,6 +82,8 @@ public actor AutoTrigger {
82
guard event.type == .keyUp,
83
event.getIntegerValueField(.keyboardEventKeycode) != escape
84
else { continue }
85
+
86
+ os_log(.info, "Prefetch suggestions.")
87
88
triggerTask = Task { @ServiceActor in
89
try? await Task.sleep(nanoseconds: 1_500_000_000)
@@ -94,7 +96,11 @@ public actor AutoTrigger {
94
96
workspaces[workspaceURL] = workspace
95
97
guard workspace.isRealtimeSuggestionEnabled else { return }
98
if Task.isCancelled { return }
- try? await Environment.triggerAction("Prefetch Suggestions")
99
+ do {
100
+ try await Environment.triggerAction("Prefetch Suggestions")
101
+ } catch {
102
+ os_log(.info, "%@", error.localizedDescription)
103
+ }
104
}
105
106
0 commit comments