Skip to content

Commit 09f80f4

Browse files
authored
Merge pull request microsoft#182379 from r3m0t/fix-170449
Prevent ligatures between inlay hints and editor contents (Fix microsoft#170449)
2 parents 5784d8b + 7a135a6 commit 09f80f4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/vs/editor/browser/editorDom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ export interface CssProperties {
342342
fontWeight?: string;
343343
fontSize?: string;
344344
fontFamily?: string;
345+
unicodeBidi?: string;
345346
textDecoration?: string;
346347
color?: string | ThemeColor;
347348
backgroundColor?: string | ThemeColor;

src/vs/editor/contrib/inlayHints/browser/inlayHintsController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ export class InlayHintsController implements IEditorContribution {
495495
fontSize: `${fontSize}px`,
496496
fontFamily: `var(${fontFamilyVar}), ${EDITOR_FONT_DEFAULTS.fontFamily}`,
497497
verticalAlign: isUniform ? 'baseline' : 'middle',
498+
unicodeBidi: 'isolate'
498499
};
499500

500501
if (isNonEmptyArray(item.hint.textEdits)) {

0 commit comments

Comments
 (0)