rescript-lang / rescript-lang/rescript-vscode
Strange formatting behavior when using raw JS with `CRLF`
Nobody has claimed this yet.
- Dominant language
- ReScript
- Stars
- 354
- Forks
- 63
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 1
Description
Strange formatting behavior when using raw JS with CRLF
This issue only occurs when there are line breaks within the backticks.
extension version: v1.18.0
same behavior using prerelease version v1.19.3
❯ rescript -v
10.1.4
# same using 11.0.0-beta.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior described in the issue with raw JavaScript containing line breaks inside backticks and CRLF line endings, using the listed ReScript VSCode extension and compiler versions. Compare the resulting formatting with the expected formatting and determine the affected extension entry point; done means the formatting no longer changes incorrectly for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100