@@ -10,6 +10,7 @@ import { ICommandService } from '../../../../../platform/commands/common/command
10
10
import { IExtensionService } from '../../../../services/extensions/common/extensions.js' ;
11
11
import { ExtensionIdentifier } from '../../../../../platform/extensions/common/extensions.js' ;
12
12
import { CHAT_OPEN_ACTION_ID } from './chatActions.js' ;
13
+ import { IExtensionManagementService } from '../../../../../platform/extensionManagement/common/extensionManagement.js' ;
13
14
14
15
15
16
export class ChatGettingStartedContribution extends Disposable implements IWorkbenchContribution {
@@ -20,6 +21,7 @@ export class ChatGettingStartedContribution extends Disposable implements IWorkb
20
21
@IProductService private readonly productService : IProductService ,
21
22
@IExtensionService private readonly extensionService : IExtensionService ,
22
23
@ICommandService private readonly commandService : ICommandService ,
24
+ @IExtensionManagementService private readonly extensionManagementService : IExtensionManagementService ,
23
25
) {
24
26
super ( ) ;
25
27
@@ -32,16 +34,16 @@ export class ChatGettingStartedContribution extends Disposable implements IWorkb
32
34
33
35
private registerListeners ( ) {
34
36
35
- this . _register ( this . extensionService . onDidChangeExtensions ( ( result ) => {
36
- for ( const ext of result . added ) {
37
- if ( ExtensionIdentifier . equals ( this . productService . gitHubEntitlement ! . extensionId , ext . identifier ) ) {
37
+ this . _register ( this . extensionManagementService . onDidInstallExtensions ( async ( result ) => {
38
+ for ( const e of result ) {
39
+ if ( ExtensionIdentifier . equals ( this . productService . gitHubEntitlement ! . extensionId , e . identifier . id ) ) {
38
40
this . recentlyInstalled = true ;
39
41
return ;
40
42
}
41
43
}
42
44
} ) ) ;
43
45
44
- this . extensionService . onDidChangeExtensionsStatus ( async ( event ) => {
46
+ this . _register ( this . extensionService . onDidChangeExtensionsStatus ( async ( event ) => {
45
47
for ( const ext of event ) {
46
48
if ( ExtensionIdentifier . equals ( this . productService . gitHubEntitlement ! . extensionId , ext . value ) ) {
47
49
const extensionStatus = this . extensionService . getExtensionsStatus ( ) ;
@@ -52,6 +54,6 @@ export class ChatGettingStartedContribution extends Disposable implements IWorkb
52
54
}
53
55
}
54
56
}
55
- } ) ;
57
+ } ) ) ;
56
58
}
57
59
}
0 commit comments