提交 290570aa 编写于 作者: J Joao Moreno

fixes #52658

上级 6396b690
......@@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import 'vs/css!./list';
import { localize } from 'vs/nls';
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
import { isNumber } from 'vs/base/common/types';
import { range, firstIndex } from 'vs/base/common/arrays';
......@@ -934,7 +935,7 @@ export class List<T> implements ISpliceable<T>, IDisposable {
this.onSelectionChange(this._onSelectionChange, this, this.disposables);
if (options.ariaLabel) {
this.view.domNode.setAttribute('aria-label', options.ariaLabel);
this.view.domNode.setAttribute('aria-label', localize('aria list', "{0}. Use the navigation keys to navigate.", options.ariaLabel));
}
this.style(options);
......
......@@ -85,7 +85,7 @@ export class ExtensionsListView extends ViewletPanel {
const delegate = new Delegate();
const renderer = this.instantiationService.createInstance(Renderer);
this.list = this.instantiationService.createInstance(WorkbenchPagedList, this.extensionsList, delegate, [renderer], {
ariaLabel: localize('extensions', "Extensions. Use the navigation keys to navigate extensions."),
ariaLabel: localize('extensions', "Extensions"),
multipleSelectionSupport: false
}) as WorkbenchPagedList<IExtension>;
this.disposables.push(this.list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册