-
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.
Back out "[flow][get-def] Use the same heuristic for get-def in requi…
…re expression" Summary: This breaks some find references test, because the change has more blast radius than I thought. Previously, I think it will only affect the get-def results in the following parts of a require: ``` const Foo = require('bar'); // ^^^^^^^^^^^^^^ ``` However, it will affect `Foo` as well, since get-def on `Foo` will jump to the `require(...)`, which then jumps to the updated location with the heuristics added in D67875259. Since it now jumps to an identifier, it now affects find-ref results, and broke some tests (see github ci). I couldn't find an easy way to fix forward, so I'm reverting the diff for now. Changelog: [internal] Reviewed By: panagosg7 Differential Revision: D67913190 fbshipit-source-id: c12fb75eee091f2a2afc08e35dcd4c098a04de6d
- Loading branch information
1 parent
ddcde52
commit 5052a16
Showing
4 changed files
with
35 additions
and
46 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
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