src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.ts/ExtensionEnablementService/updateEnablementByWorkspaceTrustRequirement
class ExtensionEnablementService:	public async updateEnablementByWorkspaceTrustRequirement(): Promise<void> {
		await this.extensionsManager.whenInitialized();

		const disabledExtensions = this.extensionsManager.extensions
			.filter(extension => {
				const dependencies = getExtensionDependencies(this.extensionsManager.extensions, extension);
				const isEnabled = this._isEnabledEnablementState(this._getUserEnablementState(extension.identifier));

				return isEnabled && (this.extensionManifestPropertiesService.getExtensionUntrustedWorkspaceSupportType(extension.manifest) === false ||
					dependencies.some(ext => this.extensionManifestPropertiesService.getExtensionUntrustedWorkspaceSupportType(ext.manifest) === false));
			});

		if (disabledExtensions.length) {
			this._onEnablementChanged.fire(disabledExtensions);
		}
	}