Skip to content

Commit e2c2c6e

Browse files
committed
Update EDIT_FORMAT_INSTRUCTIONS_DIFF to explicitly include renamed and deleted files in the formatting instructions
1 parent a2075be commit e2c2c6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/vscode/src/constants/edit-format-instructions.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ export const EDIT_FORMAT_INSTRUCTIONS_TRUNCATED =
55
'Whenever showing a new or updated file, provide brief explanation, then print path in a markdown heading (e.g. ### New file: `src/counter.py`, ### Updated file: `src/counter.py`), followed by a markdown code block with truncated contents—as a space saving measure unchanged parts should be hidden behind ellipsis comments, e.g. "// ...". Example:\nThe count variable has been incremented.\n### Updated file: `src/counter.py`\n```python\n// ...\ncount = 20\n// ...\n```'
66

77
export const EDIT_FORMAT_INSTRUCTIONS_DIFF =
8-
'Whenever showing a new or updated file, provide brief explanation, then print path in a markdown heading (e.g. ### New file: `src/counter.py`, ### Updated file: `src/counter.py`), followed by a unified diff within a markdown code block. Example:\nThe count variable has been incremented.\n### Updated file: `src/counter.py`\n```diff\n--- a/src/counter.py\n+++ b/src/counter.py\n@@ -2,1 +2,1 @@\n-count = 10\n+count = 20\n```'
8+
'Whenever showing a new, updated, renamed or deleted file, provide brief explanation, then print path in a markdown heading (e.g. ### New file: `src/counter.py`, ### Updated file: `src/counter.py`), followed by a unified diff within a markdown code block. Example:\nThe count variable has been incremented.\n### Updated file: `src/counter.py`\n```diff\n--- a/src/counter.py\n+++ b/src/counter.py\n@@ -2,1 +2,1 @@\n-count = 10\n+count = 20\n```'

0 commit comments

Comments
 (0)