rescript-lang / rescript-lang/rescript-vscode

LSP info messed up in JSX scope when there's an error

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

When there's an error in the jsx scope, all the LSP data is messed up:

Image

Once fixed, LSP gets back to normal:

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 problem in the VSCode plugin by introducing an error inside a JSX scope, then compare the LSP data with the corrected case shown in the report. Trace the language-server handling for that error state; done means LSP information remains correct while the JSX error is present.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.