ask_message_async


Description:

public async MessageActionItem? ask_message_async (MessageType type, string message, MessageActionItem[]? actions = null) throws Error

The show message request allows to pass actions and to wait for an answer from the client.

Parameters:

actions

The list of actions the user can select, like 'Ok', 'Cancel', 'Build', etc. Can be `null` if you just want to wait for a response from the editor after showing a message.

Returns:

The action selected in the editor or `null` if no actions were provided.