Merge pull request #182379 from r3m0t/fix-170449

Prevent ligatures between inlay hints and editor contents (Fix #170449)
This commit is contained in:
Henning Dieterichs 2023-05-22 12:36:33 +02:00 committed by GitHub
commit 09f80f4c54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -342,6 +342,7 @@ export interface CssProperties {
fontWeight?: string;
fontSize?: string;
fontFamily?: string;
unicodeBidi?: string;
textDecoration?: string;
color?: string | ThemeColor;
backgroundColor?: string | ThemeColor;

View file

@ -495,6 +495,7 @@ export class InlayHintsController implements IEditorContribution {
fontSize: `${fontSize}px`,
fontFamily: `var(${fontFamilyVar}), ${EDITOR_FONT_DEFAULTS.fontFamily}`,
verticalAlign: isUniform ? 'baseline' : 'middle',
unicodeBidi: 'isolate'
};
if (isNonEmptyArray(item.hint.textEdits)) {