Skip to content

Commit bc36fde

Browse files
committed
Only append edit format instructions if context text is collected
1 parent b619214 commit bc36fde

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/vscode/src/commands/chat-commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function handle_chat_command(
7676
}`
7777
)
7878

79-
if (edit_format_instructions) {
79+
if (edit_format_instructions && context_text) {
8080
instructions += `\n${edit_format_instructions}`
8181
}
8282

packages/vscode/src/commands/chat-to-clipboard-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function chat_to_clipboard_command(
7878
}`
7979
)
8080

81-
if (edit_format_instructions) {
81+
if (edit_format_instructions && context_text) {
8282
instructions += `\n${edit_format_instructions}`
8383
}
8484

0 commit comments

Comments
 (0)