Skip to content

replace_string_in_file deletes \n #251942

Open
@hediet4

Description

@hediet4
# Tool Call - toolu_011FY4XuVnQDXGtUKgGJUBva__vscode-1750360460889

## Request
~~~
id   : toolu_011FY4XuVnQDXGtUKgGJUBva__vscode-1750360460889
tool : replace_string_in_file
args : {
  "filePath": "d:\\dev\\2025\\web-widgets\\.vscode\\launch.json",
  "newString": "		{
			\"name\": \"Debug Main Process\",
			\"type\": \"node\",
			\"request\": \"launch\",
			\"cwd\": \"${workspaceFolder}/app\",
			\"runtimeExecutable\": \"${workspaceFolder}/node_modules/.bin/electron\",
			\"windows\": {
				\"runtimeExecutable\": \"${workspaceFolder}/node_modules/.bin/electron.cmd\"
			},
			\"args\": [\".\", \"--appDataDir=test-data\"],
			\"outputCapture\": \"std\",
			\"runtimeArgs\": [\"--remote-debugging-port=9222\"],
			\"env\": {
				\"PATH\": \"${env:USERPROFILE}\\\\AppData\\\\Roaming\\\\fnm;${env:PATH}\"
			}
		},",
  "oldString": "		{
			\"name\": \"Debug Main Process\",
			\"type\": \"node\",
			\"request\": \"launch\",
			\"cwd\": \"${workspaceFolder}/app\",
			\"runtimeExecutable\": \"${workspaceFolder}/node_modules/.bin/electron\",
			\"windows\": {
				\"runtimeExecutable\": \"${workspaceFolder}/node_modules/.bin/electron.cmd\"
			},
			\"args\": [\".\", \"--appDataDir=test-data\"],
			\"outputCapture\": \"std\",
			\"runtimeArgs\": [\"--remote-debugging-port=9222\"]
		},"
}
~~~
## Response
~~~
The following files were successfully edited:
d:\dev\2025\web-widgets\.vscode\launch.json

~~~

This resulted in this edit.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions