Skip to content

Highlight type parameters consistently #1746

@RunDevelopment

Description

@RunDevelopment

Search Terms

themes, type parameter, typeparam

Problem

Type parameters are highlighted in a nice violet color by the built-in themes. However, not all occurrences of type parameters are highlighted:

image

As you can see, S and O are not highlighted at their declaration site (withInitial<S, O>) and in the "Type parameters" section.

Suggested Solution

Highlight type parameters at their declaration site:

image

and maybe in the "Type parameters" section:

image

Frankly, I'm split on the "Type parameters" section highlighting. It's nice to be consistent but it also looks a little strange. Maybe it's a tad too colorful?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions