chore: remove the google drive built-in extension (#4187)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user