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 f8eb847
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
+49-7Lines changed: 49 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,12 @@ GREETING = "Hello, World!"
10
10
11
11
def show_greeting():
12
12
print(GREETING)
13
-
\`\`\``
13
+
\`\`\`
14
14
15
-
exportconstEDIT_FORMAT_INSTRUCTIONS_TRUNCATED=`${intro}, followed by a markdown code block with file's contents. As a space saving measure, unchanged function bodies (code inside {}) should be replaced with ellipsis comments. Example:
15
+
### Deleted file: \`src/examples/weekdays.py\`
16
+
`
17
+
18
+
exportconstEDIT_FORMAT_INSTRUCTIONS_TRUNCATED=`${intro}, followed by a markdown code block with file's contents. As a space saving measure, truncate blocks like unchanged function bodies (code inside {}) by replacing with ellipsis comments. Example:
16
19
Updated the greeting text.
17
20
18
21
### Updated file: \`src/examples/hello.js\`
@@ -28,7 +31,28 @@ function getDuration() {
28
31
function showGreeting() {
29
32
// ...
30
33
}
31
-
\`\`\``
34
+
\`\`\`
35
+
36
+
Updated the purpose text.
37
+
38
+
### Updated file: \`src/README.md\`
39
+
40
+
\`\`\`markdown
41
+
## Purpose
42
+
43
+
Greet user saying "Hello, World!", for a duration of 5 seconds.
44
+
45
+
## License
46
+
47
+
<!-- ... --->
48
+
49
+
## Author
50
+
51
+
<!-- ... --->
52
+
\`\`\`
53
+
54
+
### Deleted file: \`src/examples/weekdays.js\`
55
+
`
32
56
33
57
exportconstEDIT_FORMAT_INSTRUCTIONS_DIFF=`${intro}, followed by a unified diff within a markdown code block. Example:
34
58
Updated the greeting text.
@@ -44,7 +68,22 @@ Updated the greeting text.
44
68
45
69
def show_greeting():
46
70
print(GREETING)
47
-
\`\`\``
71
+
\`\`\`
72
+
73
+
Created a simple calculator with addition and subtraction.
74
+
75
+
### Created file: \`src/examples/calculator.py\`
76
+
77
+
\`\`\`python
78
+
def add(a, b):
79
+
return a + b
80
+
81
+
def subtract(a, b):
82
+
return a - b
83
+
\`\`\`
84
+
85
+
### Deleted file: \`src/examples/weekdays.py\`
86
+
`
48
87
49
88
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