Open Mister-Hope opened 3 years ago
Do you mean that the 'extends' in the 'export type' block and the 'extends' in the 'export interface' is highlighted in different colors?
Yes, the generics functions in interface display differently, and the highlight class is also not matching the ast
What causes this is the new lines after the <
:
I'd be open to a well scoped PR which fixes this but doesn't break the existing tests. I think this could be quite hard, as when I last chatted with some of the team about this repo - dealing with odd newlines can often have strange cascading effects.
Just feed back here, the newline is added by prettier, I don't like that line either, but my team is using prettier to make styles constant. I do agree that without prettier, rare people write code like this so it's an edge case
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
I think this issue exist for quite a long time.
This may also happens in certain forms with generics.