[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>
Showing
- compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts 8 additions, 2 deletions...ges/babel-plugin-react-compiler/src/Entrypoint/Options.ts
- compiler/packages/babel-plugin-react-compiler/src/Inference/InferEffectDependencies.ts 25 additions, 1 deletion...n-react-compiler/src/Inference/InferEffectDependencies.ts
- compiler/packages/react-forgive/server/src/index.ts 75 additions, 5 deletionscompiler/packages/react-forgive/server/src/index.ts
- compiler/packages/react-forgive/server/src/requests/autodepsdecorations.ts 1 addition, 1 deletion.../react-forgive/server/src/requests/autodepsdecorations.ts
- compiler/packages/react-forgive/server/src/utils/range.ts 16 additions, 0 deletionscompiler/packages/react-forgive/server/src/utils/range.ts
Please register or sign in to comment