rescript-lang / rescript-lang/rescript-vscode

Explore advanced refactoring features.

Open
#243 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
ReScript
Stars
354
Forks
63
Avg merge
11h 29m
Merged PRs (30d)
1

Description

E.g. turning a record field into an optional, could look like this:

Screenshot 2021-05-18 at 02 03 49

There are some technical issues that prevent doing one of these transformation at the moment (pretty-printing from a typed AST does not recover exactly the original).

There are also some questions about what transformations, of all the possible ones, would be more compelling and improve developer experience.

So this is not going to happen anytime soon, but some exploration can already be done now.

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

Begin with the proposed record-field-to-optional transformation and investigate the typed-AST pretty-printing limitation described in the issue. Define which refactorings would improve developer experience and what output-preservation criteria would make the exploration complete; the issue names no files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.