Gated server initialization to lazy parse and added integration tests
Summary:
This diff gates lazy parsing behind lazy_init, a new flag for the typechecker. Doing so allows us to test the feature separately, under correct assumptions rather than the ones given by our integration tests before(such as enable_fuzzy_search = false).
We introduce two functions for init: lazy_init and eager_init. There's some copy pasting going on here, but since the two initialization modes are very different, most of it can't be avoided.
Reviewed By: dabek
Differential Revision:
D4122208
fbshipit-source-id:
7e290e4a1efb101fb9c6d599379b73dadb19cd4e