rescript-lang / rescript-lang/rescript-vscode

Strange formatting behavior when using raw JS with `CRLF`

Open
#782 0 comments 0 reactions 0 assignees View on GitHub

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

https://github.com/rescript-lang/rescript-vscode/assets/87858323/6cba24c5-7d44-4d20-b0da-bac9bbc3a424

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.