-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rearrange autofix-exports code to make room for other code actions
Summary: This diff just moves code around and shouldn't change any behavior. The main change is that checking the `opt_autofix_exports` flowconfig flag is moved out of `commandHandler.ml` and pushed into `Type_info_service.code_actions_at_loc`, where it's closer to the logic which computes the codeActions. This will let us use the flag to guard only the "autofix exports" (instead of guarding all codeActions), so that we can provide "did you mean?"-related quickfixes even when the flag is turned off. Reviewed By: gkz Differential Revision: D19917799 fbshipit-source-id: cbb6f44f7703559b63a5e4e8e4f5cffbd836f8bc
- Loading branch information
1 parent
0a23767
commit 922c145
Showing
2 changed files
with
57 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters