chore: remove the google drive built-in extension (#4187)

This commit is contained in:
Jack Amadeo
2025-08-19 17:04:30 -04:00
committed by GitHub
parent 70f0173f9d
commit 33bf5a44ed
13 changed files with 26 additions and 5082 deletions
@@ -20,6 +20,8 @@ type BundledExtension = {
allow_configure?: boolean;
};
const DEPRECATED_BUILTINS = ['googledrive', 'google_drive'];
/**
* Synchronizes built-in extensions with the config system.
* This function ensures all built-in extensions are added, which is especially
@@ -37,6 +39,13 @@ export async function syncBundledExtensions(
// Cast the imported JSON data to the expected type
const bundledExtensions = bundledExtensionsData as BundledExtension[];
for (let i = existingExtensions.length - 1; i >= 0; i--) {
const ext = existingExtensions[i];
if (ext.type == 'builtin' && DEPRECATED_BUILTINS.includes(ext.name)) {
existingExtensions.splice(i, 1);
}
}
// Process each bundled extension
for (const bundledExt of bundledExtensions) {
// Find if this extension already exists