src/vs/workbench/services/extensions/electron-sandbox/electronExtensionService.ts/ElectronExtensionService/_createLocalExtensionHostDataProvider
class ElectronExtensionService:	protected _createLocalExtensionHostDataProvider(isInitialStart: boolean, desiredRunningLocation: ExtensionRunningLocation): ILocalProcessExtensionHostDataProvider & IWebWorkerExtensionHostDataProvider {
		return {
			getInitData: async (): Promise<ILocalProcessExtensionHostInitData & IWebWorkerExtensionHostInitData> => {
				if (isInitialStart) {
					// Here we load even extensions that would be disabled by workspace trust
					const localExtensions = this._checkEnabledAndProposedAPI(await this._scanAllLocalExtensions(), /* ignore workspace trust */true);
					const runningLocation = this._determineRunningLocation(localExtensions);
					const myExtensions = filterByRunningLocation(localExtensions, runningLocation, desiredRunningLocation);
					return {
						autoStart: false,
						allExtensions: localExtensions,
						myExtensions: myExtensions.map(extension => extension.identifier)
					};
				} else {
					// restart case
					const allExtensions = await this.getExtensions();
					const myExtensions = this._filterByRunningLocation(allExtensions, desiredRunningLocation);
					return {
						autoStart: true,
						allExtensions: allExtensions,
						myExtensions: myExtensions.map(extension => extension.identifier)
					};
				}
			}
		};
	}