Skip to content

Commit 3600fe4

Browse files
committed
Update
1 parent 9adc947 commit 3600fe4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Core/Sources/Service/AutoTrigger.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ actor AutoTrigger {
4343
}
4444

4545
triggerTask = Task { @ServiceActor in
46-
try? await Task.sleep(nanoseconds: 2_500_000_000)
46+
try? await Task.sleep(nanoseconds: 3_000_000_000)
4747
if Task.isCancelled { return }
4848
let fileURL = try? await Environment.fetchCurrentFileURL()
4949
guard let folderURL = try? await Environment.fetchCurrentProjectRootURL(fileURL),
5050
let workspace = workspaces[folderURL],
5151
workspace.isRealtimeSuggestionEnabled
5252
else { return }
53+
if Task.isCancelled { return }
5354
try? await Environment.triggerAction("Real-time Suggestions")
5455
}
5556
}

0 commit comments

Comments
 (0)