mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
@@ -376,6 +376,16 @@ export class List<T> implements IDisposable {
|
||||
}
|
||||
}
|
||||
|
||||
focusFirst(): void {
|
||||
if (this.length === 0) { return; }
|
||||
this.setFocus(0);
|
||||
}
|
||||
|
||||
focusLast(): void {
|
||||
if (this.length === 0) { return; }
|
||||
this.setFocus(this.length - 1);
|
||||
}
|
||||
|
||||
getFocus(): number[] {
|
||||
return this.focus.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user