Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 3, 2025

Fix React component prop usage references missing in Find All References

  • Create fourslash test showing the issue (reactComponentPropReferences)
  • Verify test baseline shows missing JSX attribute references
  • Investigate the codebase to find where JSX attribute references are handled
  • Fix the issue so JSX attribute usages are included in find all references
  • Update test baseline with expected behavior
  • Run existing tests to ensure no regressions
Original prompt

This section details on the original issue you should resolve

<issue_title>Component prop usage references missing</issue_title>
<issue_description>Feature difference in: Find all references for a property in a React component it would display all the usages in the current component and any usage of that component when the property was initialized.

Now it only displays usage within the current component. Example:

Before

Image

After (Typescript Native)

Image

Just using the getting started vite app and created a simple component with a value prop</issue_description>

<agent_instructions>Create a fourslash test in internal/fourslash/tests showing the issue first. Consider reading some fourslash JSX tests in _submodule/TypeScript for info on how to correctly configure the test. Once you have the test and its baselines, commit that, and then fix the issue.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Copilot finished work on behalf of jakebailey November 3, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Component prop usage references missing

2 participants