Skip to content

Commit 1ab30c3

Browse files
committed
Add blank lines before and after CDATA blocks in commit message prompt for better readability
1 parent 94f2cd4 commit 1ab30c3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/vscode/src/views/panel/backend/message-handlers/handle-commit-changes/utils/prompt-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ export const build_commit_message_prompt = (
5757
)
5858
changes_content += `\n### File: \`${file_path}\`\n\n`
5959
if (file_data) {
60-
changes_content += `The original state of the file for reference:\n<![CDATA[\n${file_data.content}\n]]>\n`
60+
changes_content += `The original state of the file for reference:\n\n<![CDATA[\n${file_data.content}\n]]>\n\n`
6161
}
62-
changes_content += `**New changes:**\n<![CDATA[\n${full_file_diff}\n]]>\n`
62+
changes_content += `**New changes:**\n\n<![CDATA[\n${full_file_diff}\n]]>\n`
6363
}
6464
}
6565

src/index.js

Whitespace-only changes.

0 commit comments

Comments
 (0)