Skip to content

highlighting between angle brackets is wrong in vscode. #796

Closed
@TheRealSyler

Description

@TheRealSyler

The problem is the highlighting between the angle brackets is wrong in vscode.

Screenshot from 2019-12-26 11-47-58

im guessing that you have a rule like

begin: < other stuff
end: >

so when there is a new line after the < it doesn't get recognized correctly.

Code

interface A {
  colors: {
    [key: string]: string;
  };
  data?: {
    [key: string]: any;
  };
}

const h = {
  setSubProperty: <
      T extends A,
      K extends keyof T,
      J extends keyof T[K]
    >(
      property: K,
      key: J,
      value: T[K][J]
    ) =>  {}
}

Edit: just noticed it works inside of an interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions