rescript-lang / rescript-lang/rescript-vscode

[feature request] support going to type definition with not saving the code.

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

image
As you can see in the screen shot, the code is not saved, but we can get the type tips for function Recoil.atom, this is great for us to look up the usage of it. But i also want to know what type the function's paramter accept, for now, i only know the type called atomConfig<'value>, could our editor support going to the atomConfig<'value>'s definition? I know that if i save the code and make the code context correct, i can go to the position of it's definition, but this would taking a lot of time.

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

Start by reproducing the ReScript VSCode plugin behavior with an unsaved call to Recoil.atom and inspect how type tips and go-to-definition currently work. Done means the editor can navigate from the parameter type atomConfig<'value'> to its definition without requiring the code to be saved.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.