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 6a65646
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/vscode/src/constants/edit-format-instructions.ts
+10-6Lines changed: 10 additions & 6 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 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\`)`
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.`
2
2
3
-
exportconstEDIT_FORMAT_INSTRUCTIONS_WHOLE=`${intro}, followed by a markdown code block with full contents—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} 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:
4
4
Updated the greeting text.
5
5
6
6
### Updated file: \`src/examples/hello.py\`
@@ -12,19 +12,23 @@ def show_greeting():
12
12
print(GREETING)
13
13
\`\`\``
14
14
15
-
exportconstEDIT_FORMAT_INSTRUCTIONS_TRUNCATED=`${intro}, followed by a markdown code block with truncated contents—as a space saving measureunchanged parts should be hidden behind ellipsis comments, e.g. "# ...". Example:
15
+
exportconstEDIT_FORMAT_INSTRUCTIONS_TRUNCATED=`${intro} 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\`
19
19
20
20
\`\`\`python
21
+
DURATION = 5
21
22
GREETING = "Hello, World!"
22
23
24
+
def get_duration():
25
+
# ...
26
+
23
27
def show_greeting():
24
-
# ... the function remains unchanged
28
+
# ...
25
29
\`\`\``
26
30
27
-
exportconstEDIT_FORMAT_INSTRUCTIONS_DIFF=`${intro}, followed by a unified diff within a markdown code block. Example:
31
+
exportconstEDIT_FORMAT_INSTRUCTIONS_DIFF=`${intro} Whenever showing changes to the original files, use the Unified Diff format. Example:
28
32
Updated the greeting text.
29
33
30
34
### Updated file: \`src/examples/hello.py\`
@@ -40,7 +44,7 @@ Updated the greeting text.
40
44
print(GREETING)
41
45
\`\`\``
42
46
43
-
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:
47
+
exportconstEDIT_FORMAT_INSTRUCTIONS_BEFORE_AFTER=`${intro} Whenever showing changes to the original files, use Git-style merge conflict markers. Example:
0 commit comments