rescript-lang / rescript-lang/rescript-vscode

Lazy syntax shows error in vscode

Open
#1,060 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

let a = lazy({})

// format to 
let a = lazy {}

// and 

let lazy(b) = a

// format to 
let lazy b = a

But the current syntax check in vscode considers the formatted syntax to be incorrect syntax.
image

And

image

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

No file, test, or entry point is named. Reproduce the issue in VSCode with the two ReScript snippets from the report, then trace the syntax-checking path; done means both formatted lazy forms are accepted without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.