提交 592fef42 编写于 作者: I isidor

fix build

上级 cd0fef28
...@@ -100,6 +100,9 @@ export class NotificationsList extends Themable { ...@@ -100,6 +100,9 @@ export class NotificationsList extends Themable {
}, },
getWidgetAriaLabel(): string { getWidgetAriaLabel(): string {
return localize('notificationsList', "Notifications List"); return localize('notificationsList', "Notifications List");
},
getWidgetRole(): string {
return 'dialog'; // https://github.com/microsoft/vscode/issues/82728
} }
} }
} }
......
...@@ -169,7 +169,6 @@ export class NotificationsToasts extends Themable implements INotificationsToast ...@@ -169,7 +169,6 @@ export class NotificationsToasts extends Themable implements INotificationsToast
// Create toast with item and show // Create toast with item and show
const notificationList = this.instantiationService.createInstance(NotificationsList, notificationToast, { const notificationList = this.instantiationService.createInstance(NotificationsList, notificationToast, {
ariaRole: 'dialog', // https://github.com/microsoft/vscode/issues/82728
verticalScrollMode: ScrollbarVisibility.Hidden verticalScrollMode: ScrollbarVisibility.Hidden
}); });
itemDisposables.add(notificationList); itemDisposables.add(notificationList);
......
...@@ -405,7 +405,8 @@ class HelpPanel extends ViewPane { ...@@ -405,7 +405,8 @@ class HelpPanel extends ViewPane {
accessibilityProvider: { accessibilityProvider: {
getAriaLabel: (item: HelpItemBase) => { getAriaLabel: (item: HelpItemBase) => {
return item.label; return item.label;
} },
getWidgetAriaLabel: () => nls.localize('remotehelp', "Remote Help")
} }
} }
); );
...@@ -817,4 +818,3 @@ class RemoteAgentConnectionStatusListener implements IWorkbenchContribution { ...@@ -817,4 +818,3 @@ class RemoteAgentConnectionStatusListener implements IWorkbenchContribution {
const workbenchContributionsRegistry = Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench); const workbenchContributionsRegistry = Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench);
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteAgentConnectionStatusListener, LifecyclePhase.Eventually); workbenchContributionsRegistry.registerWorkbenchContribution(RemoteAgentConnectionStatusListener, LifecyclePhase.Eventually);
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteWindowActiveIndicator, LifecyclePhase.Starting); workbenchContributionsRegistry.registerWorkbenchContribution(RemoteWindowActiveIndicator, LifecyclePhase.Starting);
...@@ -519,7 +519,8 @@ export class TunnelPanel extends ViewPane { ...@@ -519,7 +519,8 @@ export class TunnelPanel extends ViewPane {
} else { } else {
return item.label; return item.label;
} }
} },
getWidgetAriaLabel: () => nls.localize('tunnelView', "Tunnel View")
} }
} }
); );
......
...@@ -212,6 +212,9 @@ export class MainPane extends ViewPane { ...@@ -212,6 +212,9 @@ export class MainPane extends ViewPane {
accessibilityProvider: { accessibilityProvider: {
getAriaLabel(r: ISCMRepository) { getAriaLabel(r: ISCMRepository) {
return r.provider.label; return r.provider.label;
},
getWidgetAriaLabel() {
return MainPane.TITLE;
} }
} }
}) as WorkbenchList<ISCMRepository>; }) as WorkbenchList<ISCMRepository>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册