Allow error records to include quickfixes
commit1adcd3cae2587dd3da50f2689eacdc47c15ad6cd
authorWilfred Hughes <wilfred@fb.com>
Fri, 6 Aug 2021 01:24:43 +0000 (5 18:24 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 6 Aug 2021 01:26:19 +0000 (5 18:26 -0700)
tree898be9db05dbc00ce248cb75e8ea8d152f9d9125
parent2a169c84b0a973e7023645e9fddbe2af60864a39
Allow error records to include quickfixes

Summary:
Add a list of quickfixes to the error record, so error handling can optionally offer users potential fixes.

Offer these code actions in the codeActionService when the user hovers over the type error.

Reviewed By: shayne-fletcher

Differential Revision: D29926371

fbshipit-source-id: ab554b88a31a2af01e9571e4d6a081b62442aa76
20 files changed:
hphp/hack/src/errors/errors.ml
hphp/hack/src/errors/errors.mli
hphp/hack/src/oxidized/gen/errors.rs
hphp/hack/src/oxidized/manual/errors_impl.rs
hphp/hack/src/oxidized_by_ref/gen/errors.rs
hphp/hack/src/oxidized_by_ref/manual/errors_impl.rs
hphp/hack/src/server/codeActionsService.ml
hphp/hack/src/typing/typing.ml
hphp/hack/src/typing/typing_array_access.ml
hphp/hack/src/typing/typing_coercion.ml
hphp/hack/src/typing/typing_enum.ml
hphp/hack/src/typing/typing_escape.ml
hphp/hack/src/typing/typing_extends.ml
hphp/hack/src/typing/typing_generic_constraint.ml
hphp/hack/src/typing/typing_global_inference.ml
hphp/hack/src/typing/typing_kinding.ml
hphp/hack/src/typing/typing_memoize.ml
hphp/hack/src/typing/typing_ops.ml
hphp/hack/src/typing/typing_subtype.ml
hphp/hack/src/typing/typing_toplevel.ml