Edit a file, routing to appropriate backend.
edit(
filePath: string,
oldString: string,
newString: string,
replaceAll: boolean = false
): Promise<EditResult>| Name | Type | Description |
|---|---|---|
filePath* | string | Absolute file path |
oldString* | string | String to find and replace |
newString* | string | Replacement string |
replaceAll | boolean | Default: falseIf true, replace all occurrences |