We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd124aa commit 8b3ad69Copy full SHA for 8b3ad69
Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift
@@ -99,6 +99,10 @@ struct PseudoCommandHandler {
99
guard let (_, filespace) = try? await Service.shared.workspacePool
100
.fetchOrCreateWorkspaceAndFilespace(fileURL: fileURL) else { return }
101
102
+ if filespace.presentingSuggestion == nil {
103
+ return // skip if there's no suggestion presented.
104
+ }
105
+
106
let content = sourceEditor.getContent()
107
if !filespace.validateSuggestions(
108
lines: content.lines,
0 commit comments