File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
server/aws-lsp-codewhisperer/src/language-server/agenticChat/tools Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ export class FsWrite {
155
155
and otherwise create a new file\n * The `append` command will add content to the end of an existing file, \
156
156
automatically adding a newline if the file does not end with one. \
157
157
The file must exist.\n Notes for using the `strReplace` command:\n * \
158
+ IMPORTANT: For the `fsWrite` tool, only use the `strReplace` command for simple, isolated single-line replacements. \
159
+ If you are editing multiple lines, always prefer the `create` command and replace the entire file content instead.\n * \
158
160
The `oldStr` parameter should match EXACTLY one or more consecutive lines from the original file. Be mindful of whitespaces!\n * \
159
161
If the `oldStr` parameter is not unique in the file, the replacement will not be performed. \
160
162
Make sure to include enough context in `oldStr` to make it unique\n * \
You can’t perform that action at this time.
0 commit comments