Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect colors for some specific cases in typescript #10

Closed
Dassderdie opened this issue Jan 26, 2020 · 1 comment
Closed

Incorrect colors for some specific cases in typescript #10

Dassderdie opened this issue Jan 26, 2020 · 1 comment

Comments

@Dassderdie
Copy link

Hi there :)

I stumbled today over these two highlighting errors in typescript.
I'm not sure wehter these inconsistencies are caused by this theme or not, but I don't know where else to create this issue.

image

type veryLongLongLongTypeName1 = { [key: string]: any };
type veryVeryLongLongLongTypeName2 = { [key: string]: any };

function LoremIpsumFunc(
    // the color should be light blue for a variable
    param: (
        | veryLongLongLongTypeName1
        | veryVeryLongLongLongTypeName2
    )["veryLongKey"]
) {
    return param;
}

class A {
    public LoremIpsumFunc<
        // the color should be green for all the types and dark blue for 'extends'
        T extends veryLongLongLongTypeName1 | veryVeryLongLongLongTypeName2
    >(param: T) {
        return param;
    }
}
@Dassderdie
Copy link
Author

Ok - I just figured out that https://github.com/microsoft/TypeScript-TmLanguage is the correct place for this issue and it seems this is a sadly by design:
microsoft/TypeScript-TmLanguage#479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant