@@ -57,7 +57,6 @@ import { IExtensionIgnoredRecommendationsService, IExtensionRecommendationsServi
5757import { IWorkspaceExtensionsConfigService } from '../../../services/extensionRecommendations/common/workspaceExtensionsConfig.js' ;
5858import { IHostService } from '../../../services/host/browser/host.js' ;
5959import { LifecyclePhase } from '../../../services/lifecycle/common/lifecycle.js' ;
60- import { IBrowserWorkbenchEnvironmentService } from '../../../services/environment/browser/environmentService.js' ;
6160import { IPreferencesService } from '../../../services/preferences/common/preferences.js' ;
6261import { CONTEXT_SYNC_ENABLEMENT } from '../../../services/userDataSync/common/userDataSync.js' ;
6362import { IViewsService } from '../../../services/views/common/viewsService.js' ;
@@ -2016,22 +2015,6 @@ class TrustedPublishersInitializer implements IWorkbenchContribution {
20162015 }
20172016 }
20182017}
2019-
2020- class DefaultExtensionsInitializer implements IWorkbenchContribution {
2021- constructor (
2022- @IAllowedExtensionsService allowedExtensionsService : IAllowedExtensionsService ,
2023- @IBrowserWorkbenchEnvironmentService environmentService : IBrowserWorkbenchEnvironmentService ,
2024- ) {
2025- // Initialize AllowedExtensionsService with DEFAULT_EXTENSIONS from environment service
2026- // This allows the service to validate extensions against the environment variable
2027- // Note: Actual installation happens on the server side where file system access is available
2028- const defaultExtensions = environmentService . defaultExtensions ;
2029- if ( defaultExtensions ) {
2030- ( allowedExtensionsService as any ) . setDefaultExtensionsEnv ( defaultExtensions ) ;
2031- }
2032- }
2033- }
2034-
20352018class ExtensionToolsContribution extends Disposable implements IWorkbenchContribution {
20362019
20372020 static readonly ID = 'extensions.chat.toolsContribution' ;
@@ -2059,7 +2042,6 @@ workbenchRegistry.registerWorkbenchContribution(ExtensionsCompletionItemsProvide
20592042workbenchRegistry . registerWorkbenchContribution ( UnsupportedExtensionsMigrationContrib , LifecyclePhase . Eventually ) ;
20602043workbenchRegistry . registerWorkbenchContribution ( TrustedPublishersInitializer , LifecyclePhase . Eventually ) ;
20612044workbenchRegistry . registerWorkbenchContribution ( ExtensionMarketplaceStatusUpdater , LifecyclePhase . Eventually ) ;
2062- workbenchRegistry . registerWorkbenchContribution ( DefaultExtensionsInitializer , LifecyclePhase . Restored ) ;
20632045if ( isWeb ) {
20642046 workbenchRegistry . registerWorkbenchContribution ( ExtensionStorageCleaner , LifecyclePhase . Eventually ) ;
20652047}
0 commit comments