You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5073c49
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/extract-diff-patches/extract-diffs.ts
Copy file name to clipboardExpand all lines: packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/test-cases/diffs/diff-markdown-path-above/diff-markdown-path-above.txt
Copy file name to clipboardExpand all lines: packages/vscode/src/constants/edit-format-instructions.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
constintro=`Whenever showing a new, updated, renamed or deleted file, provide a brief explanation, then print the path in a markdown heading (e.g. ### New file: \`src/examples/hello.py\`, ### Updated file: \`src/examples/hello.py\`, ### Renamed file: \`src/examples/hello.py\` (old) \`src/welcome.py\` (new), ### Deleted file: \`src/examples/hello.py\`), followed by a file within a markdown code block, when necessary.`
1
+
constintro=`Whenever showing a new, updated, renamed or deleted file, provide a brief explanation, then print the path in a markdown heading (e.g. ### New file: \`src/examples/hello.py\`, ### Updated file: \`src/examples/hello.py\`, ### Renamed file: \`src/examples/hello.py\` (old) \`src/welcome.py\` (new), ### Deleted file: \`src/examples/hello.py\`)`
2
2
3
-
exportconstEDIT_FORMAT_INSTRUCTIONS_WHOLE=`${intro} You must show file contents in full—as I have a disability which means I can't type and need to be able to just copy and paste. Example:
3
+
exportconstEDIT_FORMAT_INSTRUCTIONS_WHOLE=`${intro}, followed by a markdown code block with the file's full contents—as I have a disability which means I can't type and need to be able to just copy and paste. Example:
4
4
Updated the greeting text.
5
5
6
6
### Updated file: \`src/examples/hello.py\`
@@ -12,7 +12,7 @@ def show_greeting():
12
12
print(GREETING)
13
13
\`\`\``
14
14
15
-
exportconstEDIT_FORMAT_INSTRUCTIONS_TRUNCATED=`${intro} As a space saving measure, replace unchanged function bodies with ellipsis comments, e.g. "# ...". Example:
15
+
exportconstEDIT_FORMAT_INSTRUCTIONS_TRUNCATED=`${intro}, followed by a markdown code block with file's contents. As a space saving measure, replace unchanged function bodies with ellipsis comments, e.g. "# ...". Example:
16
16
Updated the greeting text.
17
17
18
18
### Updated file: \`src/examples/hello.py\`
@@ -28,7 +28,7 @@ def show_greeting():
28
28
# ...
29
29
\`\`\``
30
30
31
-
exportconstEDIT_FORMAT_INSTRUCTIONS_DIFF=`${intro} Whenever showing changes to the original files, use the Unified Diff format. Example:
31
+
exportconstEDIT_FORMAT_INSTRUCTIONS_DIFF=`${intro}, followed by a unified diff within a markdown code block. Example:
32
32
Updated the greeting text.
33
33
34
34
### Updated file: \`src/examples/hello.py\`
@@ -44,7 +44,7 @@ Updated the greeting text.
44
44
print(GREETING)
45
45
\`\`\``
46
46
47
-
exportconstEDIT_FORMAT_INSTRUCTIONS_BEFORE_AFTER=`${intro} Whenever showing changes to the original files, use Git-style merge conflict markers. Example:
47
+
exportconstEDIT_FORMAT_INSTRUCTIONS_BEFORE_AFTER=`${intro}, followed by a markdown code block showing the original and updated code snippets with Git-style merge conflict markers. Example:
0 commit comments