Skip to content

Commit fa6c148

Browse files
committed
rename suggestions: extract magic number into a var
1 parent 4c57ecb commit fa6c148

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/editor/contrib/rename/browser/renameInputField.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@ class CandidatesView {
603603

604604
private _pickListHeight(nCandidates: number) {
605605
const heightToFitAllCandidates = this._candidateViewHeight * nCandidates;
606-
const height = Math.min(heightToFitAllCandidates, this._availableHeight, this._candidateViewHeight * 7 /* max # of candidates we want to show at once */);
606+
const MAX_N_CANDIDATES = 7; // @ulugbekna: max # of candidates we want to show at once
607+
const height = Math.min(heightToFitAllCandidates, this._availableHeight, this._candidateViewHeight * MAX_N_CANDIDATES);
607608
return height;
608609
}
609610

0 commit comments

Comments
 (0)