Closed
Description
module Details = {
@react.component
let make = (~input as {filePath}: input) => React.string(filePath)
}
module Body = {
@react.component
let make = (~input as {filePath, oldString, newString, replaceAll}: input) => <>
<ToolView.Field label="file" value=filePath />
<ToolView.Text
label={replaceAll->Option.getOr(false) ? "replace all" : "replace"} text=oldString
/>
{newString == ""
? <ToolView.Field label="with" value="(nothing)" />
: <ToolView.Text label="with" text=newString />}
</>
}
module Output = Tool.TextResult.Output
let failed = Tool.TextResult.failed
It seems that some AIs love writing very dense code, and it makes things rather unreadable. It would be amazing if we could print in a way that adds white-spacing / makes the formatting consistent. Just like we remove double white-spacing in the formatter
I have a draft PR (vibed) here: #8961
Metadata
Metadata
Assignees
Labels
No labels
Activity
Format a blank line around module items that span several lines
Format a blank line around module items that span several lines
Format a blank line around module items that span several lines
Format a blank line around module items that span several lines
Format a blank line around module items that span several lines
Format a blank line around multi-line module items (#8961)
Format a blank line around multi-line module items (rescript-lang#8961)