Skip to content

Multiline comments get expanded from formatter #427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hellos3b opened this issue May 21, 2022 · 3 comments
Closed

Multiline comments get expanded from formatter #427

hellos3b opened this issue May 21, 2022 · 3 comments

Comments

@hellos3b
Copy link

When writing a Multiline comment with /* This Syntax */, each time you hit save the auto formatter doubles the spacing inside the comment block

GIF of me press CTRL+S
comment-format

Windows 11
Vscode 1.67.2
Rescript extension 1.3.0

@cristianoc
Copy link
Collaborator

I vaguely remember this coming up before, perhaps in a forum post.

@zth
Copy link
Collaborator

zth commented May 31, 2022

@cristianoc I believe you're thinking of this issue: #333

@hellos3b can you try the solution described in that issue? If that works, we should add it to the readme.

@hellos3b
Copy link
Author

Yep, that did the trick - changing the line endings from CRLF to LF seemed to fix the issue!

I updated my user settings for File.eol and set it to "LF". It defaults to "auto", not sure who dictates what "auto" is but if the extension can that'd be cool. Otherwise, thanks for resolving!

@zth zth closed this as completed Jun 2, 2022
@zth zth mentioned this issue Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants