Merge branch 'autocompleteHomeEndSupport' of https://github.com/mlewand/vscode into mlewand-autocompleteHomeEndSupport

This commit is contained in:
Joao Moreno
2017-04-11 15:05:45 +02:00
3 changed files with 82 additions and 0 deletions

View File

@@ -716,6 +716,16 @@ export class List<T> implements ISpliceable<T>, IDisposable {
}
}
focusLast(): void {
if (this.length === 0) { return; }
this.setFocus([this.length - 1]);
}
focusFirst(): void {
if (this.length === 0) { return; }
this.setFocus([0]);
}
getFocus(): number[] {
return this.focus.get();
}