You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -189,6 +194,10 @@ class RenderedStatusBar implements IDisposable {
189
194
returnthis._statusBar.hoverElement;
190
195
}
191
196
197
+
getactions(): HoverAction[]{
198
+
returnthis._statusBar.actions;
199
+
}
200
+
192
201
dispose(){
193
202
this._statusBar.dispose();
194
203
}
@@ -270,6 +279,7 @@ class RenderedContentHoverParts extends Disposable {
270
279
this._renderedParts.push({
271
280
type: 'statusBar',
272
281
hoverElement: renderedStatusBar.hoverElement,
282
+
actions: renderedStatusBar.actions,
273
283
});
274
284
}
275
285
returntoDisposable(()=>{disposables.dispose();});
@@ -332,7 +342,16 @@ class RenderedContentHoverParts extends Disposable {
332
342
return'';
333
343
}
334
344
if(renderedPart.type==='statusBar'){
335
-
returnlocalize('hoverAccessibilityStatusBar',"This is a hover status bar.");
345
+
conststatusBarDescription=[localize('hoverAccessibilityStatusBar',"This is a hover status bar.")];
346
+
for(constactionofrenderedPart.actions){
347
+
constkeybinding=action.actionKeybindingLabel;
348
+
if(keybinding){
349
+
statusBarDescription.push(localize('hoverAccessibilityStatusBarActionWithKeybinding',"It has an action with label {0} and keybinding {1}.",action.actionLabel,keybinding));
350
+
}else{
351
+
statusBarDescription.push(localize('hoverAccessibilityStatusBarActionWithoutKeybinding',"It has an action with label {0}.",action.actionLabel));
0 commit comments