We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9adc947 commit 3600fe4Copy full SHA for 3600fe4
Core/Sources/Service/AutoTrigger.swift
@@ -43,13 +43,14 @@ actor AutoTrigger {
43
}
44
45
triggerTask = Task { @ServiceActor in
46
- try? await Task.sleep(nanoseconds: 2_500_000_000)
+ try? await Task.sleep(nanoseconds: 3_000_000_000)
47
if Task.isCancelled { return }
48
let fileURL = try? await Environment.fetchCurrentFileURL()
49
guard let folderURL = try? await Environment.fetchCurrentProjectRootURL(fileURL),
50
let workspace = workspaces[folderURL],
51
workspace.isRealtimeSuggestionEnabled
52
else { return }
53
+ if Task.isCancelled { return }
54
try? await Environment.triggerAction("Real-time Suggestions")
55
56
0 commit comments