Skip to content

Generalize missing token hints to more constructs #35597

@DanielRosenwasser

Description

@DanielRosenwasser

@Toxyxer recently fixed #34870. As mentioned:


A great follow-up would be to make this work for

  • } braces in
    • object literals
    • interfaces and object type literals
    • namespaces and augmentations
    • jsx expressions
  • Parentheses in
    • parenthesized expressions
    • parenthesized types
    • argument lists
    • parameter lists
  • Square brackets for
    • arrays
    • element accesses
    • indexed access types
    • tuple types
  • Angle brackets for
    • type parameter lists
    • type argument lists
    • jsx tags
  • For the : in ternaries, eg a ? b : c (maybe?)

Originally posted by @DanielRosenwasser in #34870 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: Error MessagesThe issue relates to error messagingDomain: Related Error SpansSpecifying regions for error messages/diagnostics on multiple locations.Experience EnhancementNoncontroversial enhancementsGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do thisPursuitFellowshipHelp wanted from Pursuit fellowship; others please avoid until Dec 19SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions