Skip to content

Commit

Permalink
suggest - show previous item when reveal an in-the-middle item to ind…
Browse files Browse the repository at this point in the history
…icate there are higher ranked suggestions
  • Loading branch information
jrieken committed Jan 9, 2025
1 parent b7b6f26 commit 80ecbbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/suggest/browser/suggestWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ export class SuggestWidget implements IDisposable {
try {
this._list.splice(0, this._list.length, this._completionModel.items);
this._setState(isFrozen ? State.Frozen : State.Open);
this._list.reveal(selectionIndex, 0);
this._list.reveal(selectionIndex, 0, selectionIndex === 0 ? 0 : this.getLayoutInfo().itemHeight * 0.33);
this._list.setFocus(noFocus ? [] : [selectionIndex]);
} finally {
this._onDidFocus.resume();
Expand Down

0 comments on commit 80ecbbe

Please sign in to comment.