mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-01 05:02:35 +01:00
Revert "improve suggest widget scaling"
This reverts commit d9d9369d6d.
This commit is contained in:
@@ -796,14 +796,14 @@ export class SuggestWidget implements IContentWidget, IDelegate<CompletionItem>,
|
||||
|
||||
private get lineHeight(): number {
|
||||
const { fontSize } = this.editor.getConfiguration();
|
||||
return Math.floor(fontSize * 1.6);
|
||||
return Math.floor(fontSize * 1.7);
|
||||
}
|
||||
|
||||
getHeight(element: CompletionItem): number {
|
||||
const focus = this.list.getFocus()[0];
|
||||
|
||||
if (element.suggestion.documentationLabel && element === focus) {
|
||||
return Math.floor(this.lineHeight * 1.8);
|
||||
return Math.floor(this.lineHeight * 1.7);
|
||||
}
|
||||
|
||||
return this.lineHeight;
|
||||
|
||||
Reference in New Issue
Block a user