Concider the following example:

If I'll try to autocomplete myAmazingFunction, everything will work just as expected (well, besides the fact that it would be prefferable to have local file variables on the top of the list, not the bottom, but I digress):

However, autocomplete can be broken just by adding two new lines before the @react.component decorator

Or by creating another variable before the @react.component decorator:

If the @react.component decorator is removed, autocomplete works with any amount of empty lines or variables:

Repo with the example:
https://github.com/Lomand/rescript-broken-autocomplete-jsx/tree/master/src/decorator-breaks-autocomplete