rescript-lang / rescript-lang/rescript-vscode

Using "rename symbol" on labelled argument breaks

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

When renaming a labelled arg, if you include the ~ it propogates to the renamed locations. If you remove it then it does not stay a labelled argument.

https://github.com/rescript-lang/rescript-vscode/assets/65739024/2486d2b2-0b05-49ff-b290-4710b48710a7

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 labelled-argument rename behavior in the VS Code extension using the attached demonstration, testing both renaming with and without the ~. Trace the rename-symbol handling until the argument label is processed; done means the ~ is preserved correctly at every renamed location without depending on whether it was included in the selected symbol.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
devtools
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.