@@ -20,6 +20,7 @@ import { ITelemetryData, TelemetryLevel } from 'vs/platform/telemetry/common/tel
20
20
import { ExtensionIdentifier , IExtensionDescription } from 'vs/platform/extensions/common/extensions' ;
21
21
import { IProductService } from 'vs/platform/product/common/productService' ;
22
22
import { URI } from 'vs/base/common/uri' ;
23
+ import { ImplicitActivationEvents } from 'vs/platform/extensionManagement/common/implicitActivationEvents' ;
23
24
24
25
export abstract class AbstractRemoteAgentService extends Disposable implements IRemoteAgentService {
25
26
@@ -85,14 +86,24 @@ export abstract class AbstractRemoteAgentService extends Disposable implements I
85
86
86
87
scanExtensions ( skipExtensions : ExtensionIdentifier [ ] = [ ] ) : Promise < IExtensionDescription [ ] > {
87
88
return this . _withChannel (
88
- ( channel , connection ) => RemoteExtensionEnvironmentChannelClient . scanExtensions ( channel , connection . remoteAuthority , this . _environmentService . extensionDevelopmentLocationURI , skipExtensions ) ,
89
+ async ( channel , connection ) => {
90
+ const scannedExtensions = await RemoteExtensionEnvironmentChannelClient . scanExtensions ( channel , connection . remoteAuthority , this . _environmentService . extensionDevelopmentLocationURI , skipExtensions ) ;
91
+ scannedExtensions . forEach ( ( extension ) => ImplicitActivationEvents . updateManifest ( extension ) ) ;
92
+ return scannedExtensions ;
93
+ } ,
89
94
[ ]
90
95
) . then ( undefined , ( ) => [ ] ) ;
91
96
}
92
97
93
98
scanSingleExtension ( extensionLocation : URI , isBuiltin : boolean ) : Promise < IExtensionDescription | null > {
94
99
return this . _withChannel (
95
- ( channel , connection ) => RemoteExtensionEnvironmentChannelClient . scanSingleExtension ( channel , connection . remoteAuthority , isBuiltin , extensionLocation ) ,
100
+ async ( channel , connection ) => {
101
+ const scannedExtension = await RemoteExtensionEnvironmentChannelClient . scanSingleExtension ( channel , connection . remoteAuthority , isBuiltin , extensionLocation ) ;
102
+ if ( scannedExtension !== null ) {
103
+ ImplicitActivationEvents . updateManifest ( scannedExtension ) ;
104
+ }
105
+ return scannedExtension ;
106
+ } ,
96
107
null
97
108
) . then ( undefined , ( ) => null ) ;
98
109
}
0 commit comments