@@ -9,7 +9,6 @@ import { EventType, addDisposableListener, EventHelper, append, $, clearNode, hi
99import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent' ;
1010import { EventType as TouchEventType , GestureEvent } from 'vs/base/browser/touch' ;
1111import { Action , IAction , Separator , SubmenuAction , toAction } from 'vs/base/common/actions' ;
12- import { Event } from 'vs/base/common/event' ;
1312import { KeyCode } from 'vs/base/common/keyCodes' ;
1413import { DisposableStore } from 'vs/base/common/lifecycle' ;
1514import { IMenuService , MenuId , IMenu , registerAction2 , Action2 , IAction2Options } from 'vs/platform/actions/common/actions' ;
@@ -41,6 +40,7 @@ import { ICredentialsService } from 'vs/platform/credentials/common/credentials'
4140import { IUserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfile' ;
4241import { StandardMouseEvent } from 'vs/base/browser/mouseEvent' ;
4342import { ILogService } from 'vs/platform/log/common/log' ;
43+ import { ISecretStorageService } from 'vs/platform/secrets/common/secrets' ;
4444
4545export class ViewContainerActivityAction extends ActivityAction {
4646
@@ -149,13 +149,9 @@ abstract class AbstractGlobalActivityActionViewItem extends ActivityActionViewIt
149149 const actions = await this . resolveContextMenuActions ( disposables ) ;
150150
151151 const event = new StandardMouseEvent ( e ) ;
152- const anchor = {
153- x : event . posx ,
154- y : event . posy
155- } ;
156152
157153 this . contextMenuService . showContextMenu ( {
158- getAnchor : ( ) => anchor ,
154+ getAnchor : ( ) => event ,
159155 getActions : ( ) => actions ,
160156 onHide : ( ) => disposables . dispose ( )
161157 } ) ;
@@ -277,7 +273,7 @@ export class AccountsActivityActionViewItem extends MenuActivityActionViewItem {
277273 private readonly problematicProviders : Set < string > = new Set ( ) ;
278274
279275 private initialized = false ;
280- private sessionFromEmbedder = getCurrentAuthenticationSessionInfo ( this . credentialsService , this . productService ) ;
276+ private sessionFromEmbedder = getCurrentAuthenticationSessionInfo ( this . credentialsService , this . secretStorageService , this . productService ) ;
281277
282278 constructor (
283279 action : ActivityAction ,
@@ -295,6 +291,7 @@ export class AccountsActivityActionViewItem extends MenuActivityActionViewItem {
295291 @IConfigurationService configurationService : IConfigurationService ,
296292 @IStorageService private readonly storageService : IStorageService ,
297293 @IKeybindingService keybindingService : IKeybindingService ,
294+ @ISecretStorageService private readonly secretStorageService : ISecretStorageService ,
298295 @ICredentialsService private readonly credentialsService : ICredentialsService ,
299296 @ILogService private readonly logService : ILogService
300297 ) {
@@ -525,7 +522,7 @@ export class GlobalActivityActionViewItem extends MenuActivityActionViewItem {
525522 @IKeybindingService keybindingService : IKeybindingService ,
526523 ) {
527524 super ( MenuId . GlobalActivity , action , contextMenuActionsProvider , true , colors , activityHoverOptions , themeService , hoverService , menuService , contextMenuService , contextKeyService , configurationService , environmentService , keybindingService ) ;
528- this . _register ( Event . any ( this . userDataProfileService . onDidUpdateCurrentProfile , this . userDataProfileService . onDidChangeCurrentProfile ) ( ( ) => this . updateProfileBadge ( ) ) ) ;
525+ this . _register ( this . userDataProfileService . onDidChangeCurrentProfile ( ( ) => this . updateProfileBadge ( ) ) ) ;
529526 }
530527
531528 override render ( container : HTMLElement ) : void {
0 commit comments