mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
polish
This commit is contained in:
@@ -651,15 +651,13 @@ export class List<T> implements ISpliceable<T>, IDisposable {
|
||||
if (options.ariaLabel) {
|
||||
this.view.domNode.setAttribute('aria-label', options.ariaLabel);
|
||||
}
|
||||
this.view.domNode.setAttribute('aria-setsize', this.length.toString());
|
||||
this.view.domNode.setAttribute('aria-setsize', '0');
|
||||
|
||||
this.style(options);
|
||||
}
|
||||
|
||||
splice(start: number, deleteCount: number, elements: T[] = []): void {
|
||||
this.eventBufferer.bufferEvents(() => {
|
||||
this.spliceable.splice(start, deleteCount, elements);
|
||||
});
|
||||
this.eventBufferer.bufferEvents(() => this.spliceable.splice(start, deleteCount, elements));
|
||||
this.view.domNode.setAttribute('aria-setsize', this.length.toString());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user