Having a multiline strin causes the formatter to insert blank lines above an below each line on each an every file format.
Example
Given the following example:
let s = `
1
2
3
`
On the first format call, this becomes:
let s = `
1
2
3
`
On the second:
let s = `
1
2
3
...etc
Version
OS: Windows 11
Rescript: 11.0.0-rc.7
Additional Context
As I was writing this issue, I noticed this does not happen with npx rescript format, only when issuing a format call from the IDE, VS Code in my case with the official rescript plugin.
Thank you for filing! Check list:
Description
Having a multiline strin causes the formatter to insert blank lines above an below each line on each an every file format.
Example
Given the following example:
On the first
format
call, this becomes:On the second:
...etc
Version
Additional Context
As I was writing this issue, I noticed this does not happen with
npx rescript format
, only when issuing a format call from the IDE, VS Code in my case with the official rescript plugin.