rescript-lang / rescript-lang/rescript-vscode

Editor jumps 200 lines below when formatting on save

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

I get the behavior with beta.5 and 1.64.0

Any change in https://github.com/DZakh/sury Sury.res which requires a formatting update.

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 in the ReScript VSCode plugin using beta.5 or 1.64.0, with formatting on save enabled and a change in Sury.res from the linked Sury repository. Start by tracing the formatting-on-save flow; done means formatting no longer moves the editor roughly 200 lines below the changed code.

Written by the indexing model from the issue text.

Assessment

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.