Skip to content

Prettier error display, like pretty-typescript-error extension #3644

Open
@WWology

Description

@WWology

Is your feature request related to a problem? Please describe.
Error messages on complex types and functions can be messy and tricky to read and understand
For example

cannot use signup.GardenerCommandHandler (value of type func(b *"clockey/bot".Bot) handler.MessageCommandHandler) as handler.MessageCommandHandler value in argument to h.MessageCommand

Describe the solution you'd like
It'll be nice if we can have error display like in the popular vscode extension, Pretty Typescript Error
https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors

So instead of the error above
We can instead display

cannot use

signup.GardenerCommandHandler

(value of type func(b *"clockey/bot".Bot) handler.MessageCommandHandler) as handler.MessageCommandHandler value in argument to h.MessageCommand

Something to this effect

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions