Skip to content

typescript/no-floating-promises: The quickfix suggestions have identical messages for adding void and await #534

@connorshea

Description

@connorshea

This causes me to see the same "Promises must be awaited" quickfix option for both of the suggestions, and I have no way to tell which is which in my editor:

var messageBase = "Promises must be awaited."
var messageBaseHelp = "The promise must end with a call to .catch, or end with a call to .then with a rejection handler."
var messageBaseVoid = "Promises must be awaited."

It'd be better if the message were distinct for the void option.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions