Skip to content

Commit 58c6c11

Browse files
committed
Update welcome message when there is no code selected and it's not a custom command
1 parent 13f1f50 commit 58c6c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ extension WindowBaseCommandHandler {
453453
summary: "\(customCommandPrefix) Chatting about selected code in `\(fileURL.lastPathComponent)` from `\(selection.start.line + 1):\(selection.start.character + 1)` to `\(selection.end.line + 1):\(selection.end.character)`.\nThe code will persist in the conversation."
454454
))
455455
}
456-
} else {
456+
} else if !customCommandPrefix.isEmpty {
457457
await chat.chatGPTService.mutateHistory { history in
458458
history.append(.init(
459459
role: .assistant,

0 commit comments

Comments
 (0)