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
is this possible to test with rescript extension in isolation ? or disable other formatter plugins like prettier.
and is this happening with normal formatting too (without format on save)
is this possible to test with rescript extension in isolation ? or disable other formatter plugins like prettier. and is this happening with normal formatting too (without format on save)
Normal format(with command line) is ok, The blank lines is getting more whether or not to disable prettier plugin.
Okay cool! I think there were several discussions on how to solve that issue, but there was no proper way to do it. So I guess the recommendation is to switch to LF (something that should be done anyway in a multi-OS environment).
Activity
Mng12345 commentedon Jan 1, 2022
Nobody here??
amiralies commentedon Jan 1, 2022
Can not reproduce this.
Which OS do you use?
is this happening using cli too?
Mng12345 commentedon Jan 1, 2022
I am using windows10 x64, This is my settings.json in vscode
The format result is normal when formatting by cli,
amiralies commentedon Jan 1, 2022
is this possible to test with rescript extension in isolation ? or disable other formatter plugins like prettier.
and is this happening with normal formatting too (without format on save)
Mng12345 commentedon Jan 1, 2022
Normal format(with command line) is ok, The blank lines is getting more whether or not to disable prettier plugin.
a-c-sreedhar-reddy commentedon Jan 8, 2022
Hi @Mng12345 Can you try removing all the other extensions from your vscode and just installing the rescript-vscode extension.
just getting started
ryyppy commentedon Jan 20, 2022
@Mng12345 can you try switching to Unix line endings in your files? There's a setting in the VSCode footer (
LF|CLRF)Might be an encoding issue
Mng12345 commentedon Jan 20, 2022
Oh! Thank you, that fixed my problem!
ryyppy commentedon Jan 20, 2022
Okay cool! I think there were several discussions on how to solve that issue, but there was no proper way to do it. So I guess the recommendation is to switch to LF (something that should be done anyway in a multi-OS environment).
Will close this.