rescript-lang / rescript-lang/rescript-vscode

Type hint of private binding shows entire block type instead of specific bindings

Open
#209 1 comment 0 reactions 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.

Screen Shot 2021-04-29 at 10 53 08 PM
%%private(
  let abc = "abc"

  let somefunc = x => {
    Array.append(x)
  }
)

Expected
specific type of "x"

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 provided private-binding snippet in the ReScript VSCode plugin and inspect the type hint for x. Compare the displayed block type with the expected specific type for x; done means the hint identifies x's specific type rather than the entire private block.

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.