rescript-lang / rescript-lang/rescript-vscode

Support autocomplete for recursive modules

Open
#631 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

rescript: v10.0.1
rescript-vscode: latest-master

module type X = {
  let x: unit => int
  let y: unit => int
}

module rec ModE: X = {
  let x = () => 1
  let y = () => ModF.y() + 1
}
and ModF: X = {
  let x = () => ModE.x() + 2
  let y = () => 2
}

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 source file or test is named. Reproduce the supplied recursive-module example in the ReScript VSCode extension and inspect the autocomplete or language-server entry point that handles module members. Done means autocomplete exposes the expected members for both recursive modules without regressions in existing autocomplete behavior.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.