Skip to content

Commit c8b8a7d

Browse files
committed
chore: add icon
1 parent 1b20762 commit c8b8a7d

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

src/manager/authentication-provider-manager.spec.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,21 @@ test('should register authentication provider and push disposable to subscriptio
312312

313313
await authenticationProviderManager.registerAuthenticationProvider();
314314

315-
expect(authentication.registerAuthenticationProvider).toHaveBeenCalledWith('ibmcloud-account', 'IBM Cloud Account', {
316-
onDidChangeSessions: authenticationProviderManager.getOnDidChangeSessions().event,
317-
createSession: expect.any(Function),
318-
getSessions: expect.any(Function),
319-
removeSession: expect.any(Function),
320-
});
321-
315+
expect(authentication.registerAuthenticationProvider).toHaveBeenCalledWith(
316+
'ibmcloud-account',
317+
'IBM Cloud Account',
318+
{
319+
onDidChangeSessions: authenticationProviderManager.getOnDidChangeSessions().event,
320+
createSession: expect.any(Function),
321+
getSessions: expect.any(Function),
322+
removeSession: expect.any(Function),
323+
},
324+
{
325+
images: {
326+
icon: 'icon.png',
327+
},
328+
},
329+
);
322330
expect(extensionContextMock.subscriptions).toContain(mockDisposable);
323331
});
324332

src/manager/authentication-provider-manager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ export class AuthenticationProviderManager {
182182
AuthenticationProviderManager.AUTH_ID,
183183
'IBM Cloud Account',
184184
authenticationProvider,
185+
{
186+
images: {
187+
icon: 'icon.png',
188+
},
189+
},
185190
);
186191

187192
this.extensionContext.subscriptions.push(authDisposable);

0 commit comments

Comments
 (0)