We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf7d6c4 commit 53a1c64Copy full SHA for 53a1c64
1 file changed
Core/Sources/Service/RealtimeSuggestionController.swift
@@ -134,27 +134,6 @@ public class RealtimeSuggestionController {
134
}
135
136
137
-
138
- Task { // Get cache ready for real-time suggestions.
139
- guard
140
- let fileURL = try? await Environment.fetchCurrentFileURL(),
141
- let (_, filespace) = try? await Workspace
142
- .fetchOrCreateWorkspaceIfNeeded(fileURL: fileURL)
143
- else { return }
144
145
- if filespace.uti == nil {
146
- Logger.service.info("Generate cache for file.")
147
- // avoid the command get called twice
148
- filespace.uti = ""
149
- do {
150
- try await Environment.triggerAction("Real-time Suggestions")
151
- } catch {
152
- if filespace.uti?.isEmpty ?? true {
153
- filespace.uti = nil
154
- }
155
156
157
158
159
160
func handleHIDEvent(event: CGEvent) async {
0 commit comments