rescript-lang / rescript-lang/rescript-vscode
Tiny would-be-nice suggestion - autocorrect "void" to "unit"
Nobody has claimed this yet.
- Dominant language
- ReScript
- Stars
- 354
- Forks
- 63
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 1
Description
I keep moving between TypeScript and ReScript and find myself typing void when I mean to do unit, like promise<void>. Or I write a binding that looks like ..... => void. And I get syntax errors. I wish the extension could automatically fix this for me. So wherever a type is expected and you see void, silently fix it for me to unit.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by tracing how the VSCode extension handles syntax errors and type positions, then determine whether the requested correction belongs in the editor or language tooling; done means void is corrected to unit wherever a type is expected without changing unrelated text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100