Skip to content

[compiler] Emit CompileSkip before CompileSuccess event #33012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2025
Merged

[compiler] Emit CompileSkip before CompileSuccess event #33012

merged 3 commits into from
Apr 24, 2025

Conversation

poteto
Copy link
Member

@poteto poteto commented Apr 24, 2025

Previously the CompileSuccess event would emit first before CompileSkip, so the lsp's codelens would incorrectly flag skipped components/hooks (via 'use no memo') as being optimized.

Stack created with Sapling. Best reviewed with ReviewStack.

poteto added 3 commits April 24, 2025 13:13
Projects with existing babel config files may confuse the LSP, so explictly opt out of looking them up.
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
Previously the CompileSuccess event would emit first before CompileSkip, so the lsp's codelens would incorrectly flag skipped components/hooks (via 'use no memo') as being optimized.
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Apr 24, 2025
poteto added a commit that referenced this pull request Apr 24, 2025
Projects with existing babel config files may confuse the LSP, so
explictly opt out of looking them up.
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33010).
* #33012
* #33011
* __->__ #33010
poteto added a commit that referenced this pull request Apr 24, 2025
Just some tweaks

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33011).
* #33012
* __->__ #33011
* #33010
@poteto poteto merged commit 9938f83 into main Apr 24, 2025
26 checks passed
@poteto poteto deleted the pr33012 branch April 24, 2025 17:30
github-actions bot pushed a commit that referenced this pull request Apr 24, 2025
Previously the CompileSuccess event would emit first before CompileSkip,
so the lsp's codelens would incorrectly flag skipped components/hooks
(via 'use no memo') as being optimized.
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33012).
* __->__ #33012
* #33011
* #33010

DiffTrain build for [9938f83](9938f83)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants