Skip to content

Related error spans on non-async functions containing 'await' #26586

@DanielRosenwasser

Description

@DanielRosenwasser

https://twitter.com/sebmck/status/1031974060832436224

Even though we provide a quick fix, it'd be great if we could provide a related span describing a fix on a containing function. Something like

Did you mean to mark this function as 'async'?

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 enhancementsFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions