Skip to content

Commit d1a1f11

Browse files
committed
Remove trigger real-time suggestion through Apple Script
1 parent 0a5fc08 commit d1a1f11

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ struct PseudoCommandHandler {
4545
return
4646
}
4747

48-
// If no cache is available, and completion panel is not displayed, try to get it with command.
49-
if editor.uti.isEmpty, await Environment.frontmostXcodeWindowIsEditor() {
50-
try? await Environment.triggerAction("Prefetch Suggestions")
51-
return
52-
}
53-
5448
// Otherwise, get it from pseudo handler directly.
5549
let mode = UserDefaults.shared.value(for: \.suggestionPresentationMode)
5650
switch mode {

0 commit comments

Comments
 (0)