Issue #2188661 by sun, Berdir: Extension System, Part II: ExtensionDiscovery.