vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

Prettier error display, like pretty-typescript-error extension

Open WWology opened this issue 11 months ago • 7 comments

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

WWology avatar Jan 01 '25 13:01 WWology