We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c591718 commit dc0b117Copy full SHA for dc0b117
2 files changed
Core/Sources/SuggestionWidget/FeatureReducers/PromptToCode.swift
@@ -105,6 +105,10 @@ public struct PromptToCode: ReducerProtocol {
105
self.generateDescriptionRequirement = generateDescriptionRequirement
106
self.isAttachedToSelectionRange = isAttachedToSelectionRange
107
self.commandName = commandName
108
+
109
+ if selectionRange?.isEmpty ?? true {
110
+ self.isAttachedToSelectionRange = false
111
+ }
112
}
113
114
Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift
@@ -78,7 +78,7 @@ extension PromptToCodePanel {
78
79
}.foregroundColor(.primary)
80
} else {
81
- Text("text selection").foregroundColor(.secondary)
+ Text("current selection").foregroundColor(.secondary)
82
83
84
.padding(2)
0 commit comments