Undefined global variable when defined via include/require
After upgrading to 2020.2, I noticed that many global variables are suddenly undefined.
Example:

I was about to submit a bug report but stumbled upon some similar bugs from the past, which raises the following question:

Is it possible that this option got renamed in the last update and that it got unchecked by this update?
On a side-note: I don't really understand why this option isn't checked by default. I mean it causes more harm and misunderstanding than it helps. To my experience, global variables are a very common thing and it would be counter-productive ignoring include/require statements by default and send thousands of developers to Google and help forums to find a solution instead of letting them do their work.
thanks
请先登录再写评论。
Yes, this option was named differently before:
> I don't really understand why this option isn't checked by default.
It allowed referencing global vars defined in other files even if they aren't included: https://youtrack.jetbrains.com/issue/WI-3962.