context_system is (unusually) defined as a 'class_alias' of 'core\context\system'. The alias is defined in lib/accesslib.php (around line 5000). The class is defined in the file lib/classes/context/system.php.
I think we should be using \core\context\system::instance() but nobody does. Anyway, check that the definition is there but I suspect the class_alias may be what's upsetting VSC.
I think we should be using \core\context\system::instance() but nobody does. Anyway, check that the definition is there but I suspect the class_alias may be what's upsetting VSC.