Skip to content

Broke ligatures highlighting with Bracket pair colorization enabled #1586

@len0xx

Description

@len0xx

Describe the bug

I have Svelte for VSCode extension installed, 'Fira Code', monospace set as the Font Family and Bracket Pair Colorization enabled in VSCode settings. When VSCode updated the last time to 1.70.1 few days ago, the bug showed up. In all of my svelte files in the script tag with lang set to "ts" arrow function syntax highlighting is kind of broken: the first symbol of the arrow (=) is colorized while the second (>) is not

Reproduction

  1. Set Font Family to 'Fira Code', monospace
  2. Enable Bracket Pair Colorization
  3. Enable ligatures
  4. Create a svelte file
  5. Add the following code to the file:
<script lang="ts">
    const a = (id: number) => id + 2
</script>

Expected behaviour

I expect the whole arrow to be the same color as it was before the recent VSCode update

System Info

  • OS: macOS arm64 21.4.0
  • IDE: VSCode 1.70.1

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

photo_2022-08-13 15 42 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions