Skip to content

ligatures starting with a pipe in the terminal only render correctly if selected #239853

Open

Description

@LucasOe

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.97.0
  • OS Version: Windows 10 (22H2)

Steps to Reproduce:

  1. Open the integrated terminal. I'm using pwsh v7.4.6
  2. Enable terminal.integrated.fontLigatures.enabled in the settings
  3. Use a font that supports ligatures. I'm using the Fira Code Nerd Font
  4. Type |== and |=== and |--- and |-> in the terminal
  5. The ligatures only render correctly if the text is selected

Image
Image

I haven't tested this issue with different fonts and different shells.

Activity

  1. albertosantini commented on Feb 7, 2025

    @albertosantini

    Same setup (pwsh 7.5.0). With Cascadia font it works fine.

    Don't forget

    Ligatures are now temporarily disabled while the cursor or the selection is within the ligature.

    https://code.visualstudio.com/updates/v1_97#_ligature-support

  2. LucasOe commented on Feb 7, 2025

    @LucasOe
    Author

    Same setup (pwsh 7.5.0). With Cascadia font it works fine.

    Trying the same setup using Cascadia Code results in the same result for me. As you can see, the => renders correctly in the screenshots below. I also updated pwsh to 7.5.0 and the problem remains. The same ligatures render correctly in the Windows Terminal.

    Image
    Image

    Ligatures are now temporarily disabled while the cursor or the selection is within the ligature.

    This isn't what's causing the problem here. Other ligatures render correctly with the same setup and cursor/selection placement, as seen in the screenshots attached. From my testing only ligatures starting with a pipe are affected, I haven't tested all of them, however.

    Image
    Image

    The same text in a blank editor for reference. Both use the Fira Code Nerd Font in this example.

  3. albertosantini commented on Feb 7, 2025

    @albertosantini

    Sorry, I misunderstood the issue and I tried the ligature without starting a pipe.
    Indeed I reproduced the issue, even if only |=== works fine, the rest of your examples are not a ligature here.

    No idea, I would say it is related to the font.

    Pipe character is like "arrow support" in Cascadia: https://github.com/microsoft/cascadia-code?tab=readme-ov-file#font-features

  4. added
    bug
    on Nov 2, 2025
  5. added this to the Backlog milestone on Nov 2, 2025
  6. dmitrivMS commented on Jun 25, 2026

    @dmitrivMS
    Collaborator

    LucasOe Do you still see this issue with 1.125.1 release?

  7. LucasOe commented on Jun 26, 2026

    @LucasOe
    Author

    Dmitriy Vasyura (@dmitrivMS) Nixpkgs only has the 1.125.0 release, but it's still an issue in that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugconfirmation-pendingterminal-ligatures

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions