microsoft / microsoft/TypeScript

Command clicking FC's in react doesn't work anymore.

Open
#57,865 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Needs More Info
Dominant language
Go
Stars
111k
Forks
14.4k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.87.2
  • OS Version: macOS 14.1.1

Steps to Reproduce:

  1. Open a react project with functional components
  2. CMD Click a functional component from your code
  3. It doesn't open the component. It opens the definition for FC in react

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 issue in VS Code 1.87.2 on macOS 14.1.1 using a React project with functional components, then inspect the command-click definition-navigation path. Done means command-clicking a functional component opens that component rather than React's FC definition; the payload names no source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript, vscode
Domain
devtools
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.