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
Copy file name to clipboardExpand all lines: packages/ai-ide/src/browser/file-changeset-functions.ts
+3-2
Original file line number
Diff line number
Diff line change
@@ -151,10 +151,11 @@ export class ReplaceContentInFileFunctionHelper {
151
151
: 'A single occurrence of each old content in the tuples is expected to be replaced. If the number of occurrences in the file does not match the expectation,\
152
152
the function will return an error. In that case try a different approach.';
153
153
154
-
constreplacementDescription=`Request to replace sections of content in an existing file by providing a list of tuples with old content to be matched and replaced.
154
+
constreplacementDescription=`Propose to replace sections of content in an existing file by providing a list of tuples with old content to be matched and replaced.
155
155
${replacementSentence}. For deletions, use an empty new content in the tuple.\
156
156
Make sure you use the same line endings and whitespace as in the original file content. The proposed changes will be applied when the user accepts.\
157
-
If called again for the same file, it will override previously proposed changes.`;
157
+
If called again for the same file, it will override previous change proposals for this file. So you must ultimatly call this function only once per file with a tuple\
0 commit comments