Skip to content

typescript type textMate scopes highlighting error #997

@shaddollxz

Description

@shaddollxz

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.84.1
  • OS Version: macOS 14.0

I have the following TypeScript code, and its return type is a union type. However, the colors for syntax highlighting are inconsistent in the same location (data and arg). I found that this is due to their different TextMate scopes.

declare function getCb():
  | { data: string; cb: (arg: string) => void }
  | { data: number; cb: (arg: number) => void }

like :
图片
scopes :
图片
图片

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions