Skip to content

Commit

Permalink
Inherit editor.letterSpacing for suggest widget (fixes microsoft#125622)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesimakin committed Apr 27, 2022
1 parent 15fe71b commit fce4175
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,14 @@ export class ItemRenderer implements IListRenderer<CompletionItem, ISuggestionTe
const fontSize = options.get(EditorOption.suggestFontSize) || fontInfo.fontSize;
const lineHeight = options.get(EditorOption.suggestLineHeight) || fontInfo.lineHeight;
const fontWeight = fontInfo.fontWeight;
const letterSpacing = fontInfo.letterSpacing;
const fontSizePx = `${fontSize}px`;
const lineHeightPx = `${lineHeight}px`;
const letterSpacingPx = `${letterSpacing}px`;

data.root.style.fontSize = fontSizePx;
data.root.style.fontWeight = fontWeight;
data.root.style.letterSpacing = letterSpacingPx;
main.style.fontFamily = fontFamily;
main.style.fontFeatureSettings = fontFeatureSettings;
main.style.lineHeight = lineHeightPx;
Expand Down

0 comments on commit fce4175

Please sign in to comment.