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
{{ message }}
Repository navigation
Have formatter insert newlines around multi-line expressions #8960
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
Activity