Skip to content

Certain ligatures after keyword tokens render with incorrect cursor position in VSCode #383

Description

@Meelee35

OS: Linux

Using VSCode, with Monaspace Neon and "editor.fontLigatures": "'calt', 'liga', 'ss01', 'ss02', 'ss03','ss04', 'ss05', 'ss06', 'ss07', 'ss08', 'ss09'", the <> ligature, along with a few others, behave oddly when typed after a keyword in javascript.

Image When by itself, it works fine. I can back arrow into it and the cursor visually shows up inside it. Image Image However, when it is on a line after a keyword, it behaves oddly. Visually, the cursor is here `<>|`, but it is actually here `<|>`. I did not move the cursors between those two images, i simply typed the letter "e" The same thing happens with the `==>, >=, <=` and potentially others.

It may be related to syntax highlighting. It doesn't happen with plain text, and doesn't happen unless after a keyword.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions