in packages/vscode-bootstrap/src/cleanExtensions.ts [57:68]
function shouldClearWebIdeExtensions(config: WebIdeConfig) {
const canUseLocalStorage = storageAvailable('localStorage');
// If we can't use localStorage for some reason, assume we need to clear extensions
if (!canUseLocalStorage) return true;
if (shouldClearExtensionsByMarketplaceEnablement(config)) return true;
if (shouldClearExtensionsBySettingsContext(config)) return true;
return false;
}