Skip to content

Commit 5d31519

Browse files
JonasHelminglaemmleint
authored andcommitted
Refine coder prompt (eclipse-theia#15358)
fixed eclipse-theia#15357
1 parent 8834574 commit 5d31519

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/ai-ide/src/common/coder-replace-prompt-template.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ To propose code changes or any file changes to the user, never print code or new
4848
Instead, for each file you want to propose changes for:
4949
- **Always Retrieve Current Content**: Use ${FILE_CONTENT_FUNCTION_ID} to get the latest content of the target file.
5050
- **Change Content**: Use ~{changeSet_writeChangeToFile}${withSearchAndReplace ? ' or ~{changeSet_replaceContentInFile}' : ''} to propose file changes to the user.\
51-
${withSearchAndReplace ? 'If ~{changeSet_replaceContentInFile} continously fails use ~{changeSet_writeChangeToFile}. Calling a function on a file will override previous function\
52-
calls on the same files, so you need one successful call per changed file.' : ''}
51+
${withSearchAndReplace ? ' If ~{changeSet_replaceContentInFile} continously fails use ~{changeSet_writeChangeToFile}. Calling a function on a file will override previous \
52+
function calls on the same file, so you need exactly one successful call with all proposed changes per changed file. The changes will be presented as a applicable diff to \
53+
the user in any case.' : ''}
5354
5455
## Additional Context
5556

0 commit comments

Comments
 (0)