File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/vs/workbench/browser/parts/notifications Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,10 @@ export class NotificationsCenter extends Themable implements INotificationsCente
78
78
show ( ) : void {
79
79
if ( this . _isVisible ) {
80
80
const notificationsList = assertIsDefined ( this . notificationsList ) ;
81
+
82
+ // Make visible and focus first
81
83
notificationsList . show ( true /* focus */ ) ;
84
+ notificationsList . focusFirst ( ) ;
82
85
83
86
return ; // already visible
84
87
}
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export function registerNotificationCommands(center: INotificationsCenterControl
104
104
} ) ;
105
105
106
106
// Toggle Notifications Center
107
- CommandsRegistry . registerCommand ( TOGGLE_NOTIFICATIONS_CENTER , accessor => {
107
+ CommandsRegistry . registerCommand ( TOGGLE_NOTIFICATIONS_CENTER , ( ) => {
108
108
if ( center . isVisible ) {
109
109
center . hide ( ) ;
110
110
} else {
You can’t perform that action at this time.
0 commit comments