Commit Graph

21502 Commits

Author SHA1 Message Date
Lauren Tan c1908705b1 merge commit for archive created by Sapling 2025-04-23 21:47:47 -04:00
Lauren Tan b5f64fc0a1 [compiler] Add missing copyrights
`yarn copyright`
2025-04-23 21:47:40 -04:00
Lauren Tan fd154a29e8 [compiler] Fix copyright script
Don't try to open directories
2025-04-23 21:47:39 -04:00
Lauren Tan b85f92890b [forgive] Polish decorations
Polishes up decorations.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:47:39 -04:00
lauren d2759d810e Merge 7c6c9dcbc1 into sapling-pr-archive-poteto 2025-04-23 21:37:32 -04:00
Lauren Tan 7c6c9dcbc1 [compiler] Add missing copyrights
`yarn copyright`
2025-04-23 21:37:22 -04:00
Lauren Tan 5bfd549c8b [compiler] Fix copyright script
Don't try to open directories
2025-04-23 21:36:36 -04:00
lauren 31a8c805ac Merge bffc3aa033 into sapling-pr-archive-poteto 2025-04-23 21:32:32 -04:00
Lauren Tan bffc3aa033 [forgive] Polish decorations
Polishes up decorations.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:32:26 -04:00
lauren b75af04670 [forgive] Don't crash if we couldn't compile (#33001)
Compiler shouldn't crash Forgive if it can't compile (eg parse error due
to being mid-typing).

Co-authored-by: Jordan Brown <jmbrown@meta.com>
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33001).
* #33002
* __->__ #33001
* #33000

---------

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:32:11 -04:00
lauren f765082996 [forgive] Add code action to remove dependency array (#33000)
Adds a new codeaction event in the compiler and handler in forgive. This
allows you to remove a dependency array when you're editing a range that
is within an autodep eligible function.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33000).
* #33002
* #33001
* __->__ #33000

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:31:57 -04:00
lauren 4133339917 Merge 1b1260bef8 into sapling-pr-archive-poteto 2025-04-23 21:27:50 -04:00
Lauren Tan 1b1260bef8 [forgive] Polish decorations
Polishes up decorations.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:27:43 -04:00
Lauren Tan 5b35b32aad [forgive] Don't crash if we couldn't compile
Compiler shouldn't crash Forgive if it can't compile (eg parse error due to being mid-typing).

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:27:43 -04:00
Lauren Tan 76a1c6153d [forgive] Add code action to remove dependency array
Adds a new codeaction event in the compiler and handler in forgive. This allows you to remove a dependency array when you're editing a range that is within an autodep eligible function.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:27:43 -04:00
lauren 7b21c46489 [forgive] Refactor inferred deps (#32999)
Refactor.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32999).
* #33002
* #33001
* #33000
* __->__ #32999

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:27:22 -04:00
lauren 6d3757c154 Merge 63408679fa into sapling-pr-archive-poteto 2025-04-23 21:22:11 -04:00
Lauren Tan 63408679fa [forgive] Polish decorations
Polishes up decorations.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:22:01 -04:00
Lauren Tan 4e6b7b1097 [forgive] Don't crash if we couldn't compile
Compiler shouldn't crash Forgive if it can't compile (eg parse error due to being mid-typing).

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:22:01 -04:00
Lauren Tan 6aaeb62b48 [forgive] Add code action to remove dependency array
Adds a new codeaction event in the compiler and handler in forgive. This allows you to remove a dependency array when you're editing a range that is within an autodep eligible function.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:22:01 -04:00
Lauren Tan c011f0be63 [forgive] Refactor inferred deps
Refactor.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:22:00 -04:00
lauren e25e8c7575 [forgive] Hacky first pass at adding decorations for inferred deps (#32998)
Draws basic decorations for inferred deps on hover.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32998).
* #33002
* #33001
* #33000
* #32999
* __->__ #32998

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 21:21:44 -04:00
lauren 9e8395c399 Merge d659f4463e into sapling-pr-archive-poteto 2025-04-23 20:53:58 -04:00
Lauren Tan d659f4463e [forgive] Polish decorations
Polishes up decorations.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:53:44 -04:00
Lauren Tan 7f16bd5121 [forgive] Don't crash if we couldn't compile
Compiler shouldn't crash Forgive if it can't compile (eg parse error due to being mid-typing).

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:53:44 -04:00
Lauren Tan 0e517326a3 [forgive] Add code action to remove dependency array
Adds a new codeaction event in the compiler and handler in forgive. This allows you to remove a dependency array when you're editing a range that is within an autodep eligible function.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:53:44 -04:00
Lauren Tan 4e72be4147 [forgive] Refactor inferred deps
Refactor.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:53:44 -04:00
Lauren Tan 73d427bb1d [forgive] Hacky first pass at adding decorations for inferred deps
Draws basic decorations for inferred deps on hover.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:53:43 -04:00
lauren 7ec50bab81 Merge 48976d4846 into sapling-pr-archive-poteto 2025-04-23 20:52:35 -04:00
Lauren Tan 48976d4846 [forgive] Polish decorations
Polishes up decorations.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:52:27 -04:00
Lauren Tan 8eae2fc6da [forgive] Don't crash if we couldn't compile
Compiler shouldn't crash Forgive if it can't compile (eg parse error due to being mid-typing).

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:52:27 -04:00
Lauren Tan 0cecd0b350 [forgive] Add code action to remove dependency array
Adds a new codeaction event in the compiler and handler in forgive. This allows you to remove a dependency array when you're editing a range that is within an autodep eligible function.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:52:27 -04:00
Lauren Tan 8c816f8ab0 [forgive] Refactor inferred deps
Refactor.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:52:27 -04:00
Lauren Tan a14ccb098f [forgive] Hacky first pass at adding decorations for inferred deps
Draws basic decorations for inferred deps on hover.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:52:26 -04:00
lauren cd7d236682 [forgive] Emit AutoDepsDecoration event when inferring effect deps (#32997)
Emits a new event for decorating inferred effect dependencies.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32997).
* #33002
* #33001
* #33000
* #32999
* #32998
* __->__ #32997
* #32996

---------

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:51:38 -04:00
lauren 71d0896a4a [forgive] Log inferEffectDependencies (#32996)
This was missed earlier.


Co-authored-by: Jordan Brown <jmbrown@meta.com>
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32996).
* #33002
* #33001
* #33000
* #32999
* #32998
* #32997
* __->__ #32996

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:49:25 -04:00
Lauren Tan e7db4e2673 merge commit for archive created by Sapling 2025-04-23 20:49:16 -04:00
Lauren Tan d116d15f8d [forgive] Polish decorations
Polishes up decorations.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:49:05 -04:00
Lauren Tan 0fec4ea6b7 [forgive] Don't crash if we couldn't compile
Compiler shouldn't crash Forgive if it can't compile (eg parse error due to being mid-typing).

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:49:05 -04:00
Lauren Tan 57962452f5 [forgive] Add code action to remove dependency array
Adds a new codeaction event in the compiler and handler in forgive. This allows you to remove a dependency array when you're editing a range that is within an autodep eligible function.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:49:05 -04:00
Lauren Tan fb99dd1dd2 [forgive] Refactor inferred deps
Refactor.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:49:05 -04:00
Lauren Tan 42d297f989 [forgive] Hacky first pass at adding decorations for inferred deps
Draws basic decorations for inferred deps on hover.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:49:04 -04:00
Lauren Tan 781b4c0ffe merge commit for archive created by Sapling 2025-04-23 20:38:35 -04:00
Lauren Tan b0b73bd28e [forgive] Polish decorations
Polishes up decorations.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:34:06 -04:00
Lauren Tan 2e8902e5e2 [forgive] Don't crash if we couldn't compile
Compiler shouldn't crash Forgive if it can't compile (eg parse error due to being mid-typing).

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:34:05 -04:00
Lauren Tan 42e9c6f98b [forgive] Add code action to remove dependency array
Adds a new codeaction event in the compiler and handler in forgive. This allows you to remove a dependency array when you're editing a range that is within an autodep eligible function.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:34:05 -04:00
Lauren Tan caf514c4c7 [forgive] Refactor inferred deps
Refactor.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:34:05 -04:00
Lauren Tan 9d91523c46 [forgive] Hacky first pass at adding decorations for inferred deps
Draws basic decorations for inferred deps on hover.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:34:05 -04:00
Lauren Tan 601e6c6ac1 [forgive] Emit AutoDepsDecoration event when inferring effect deps
Emits a new event for decorating inferred effect dependencies.

Co-authored-by: Jordan Brown <jmbrown@meta.com>
2025-04-23 20:34:04 -04:00
lauren 56a579aced Merge 9b70b0e77a into sapling-pr-archive-poteto 2025-04-23 20:30:21 -04:00