Skip to content

Commit edcbfca

Browse files
committed
Update truncated example to use JavaScript syntax and naming conventions
1 parent 3f8ad3c commit edcbfca

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ def show_greeting():
1515
export const EDIT_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:
1616
Updated the greeting text.
1717
18-
### Updated file: \`src/examples/hello.py\`
18+
### Updated file: \`src/examples/hello.js\`
1919
20-
\`\`\`python
21-
DURATION = 5
22-
GREETING = "Hello, World!"
20+
\`\`\`javascript
21+
const DURATION = 5;
22+
const GREETING = "Hello, World!";
2323
24-
def get_duration():
25-
# ...
24+
function getDuration() {
25+
// ...
26+
}
2627
27-
def show_greeting():
28-
# ...
28+
function showGreeting() {
29+
// ...
30+
}
2931
\`\`\``
3032

3133
export const EDIT_FORMAT_INSTRUCTIONS_DIFF = `${intro}, followed by a unified diff within a markdown code block. Example:

0 commit comments

Comments
 (0)