@@ -27,16 +27,18 @@ export class ExtensionActivationManager implements IExtensionActivationManager {
2727 private docOpenedHandler ?: IDisposable ;
2828
2929 constructor (
30- @multiInject ( IExtensionActivationService ) private readonly activationServices : IExtensionActivationService [ ] ,
30+ @multiInject ( IExtensionActivationService ) private activationServices : IExtensionActivationService [ ] ,
3131 @multiInject ( IExtensionSingleActivationService )
32- private readonly singleActivationServices : IExtensionSingleActivationService [ ] ,
32+ private singleActivationServices : IExtensionSingleActivationService [ ] ,
3333 @inject ( IDocumentManager ) private readonly documentManager : IDocumentManager ,
3434 @inject ( IInterpreterAutoSelectionService ) private readonly autoSelection : IInterpreterAutoSelectionService ,
3535 @inject ( IApplicationDiagnostics ) private readonly appDiagnostics : IApplicationDiagnostics ,
3636 @inject ( IWorkspaceService ) private readonly workspaceService : IWorkspaceService ,
3737 @inject ( IFileSystem ) private readonly fileSystem : IFileSystem ,
3838 @inject ( IActiveResourceService ) private readonly activeResourceService : IActiveResourceService ,
39- ) {
39+ ) { }
40+
41+ private filterServices ( ) {
4042 if ( ! this . workspaceService . isTrusted ) {
4143 this . activationServices = this . activationServices . filter (
4244 ( service ) => service . supportedWorkspaceTypes . untrustedWorkspace ,
@@ -67,6 +69,7 @@ export class ExtensionActivationManager implements IExtensionActivationManager {
6769 }
6870
6971 public async activate ( ) : Promise < void > {
72+ this . filterServices ( ) ;
7073 await this . initialize ( ) ;
7174
7275 // Activate all activation services together.
0 commit comments