-
hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @wss29, the GLSP protocol allows you to send export interface MessageAction extends Action {
kind: typeof MessageAction.KIND;
severity: SeverityLevel;
/**
* The message that shall be shown to the user.
*/
message: string;
/**
* Further details on the message.
*/
details?: string;
} The severity level determines whether the message is printed as info, warning or error, if details are passed an additional "Show Details" button will be displayed which opens a dialog with the details content when clicked. So you can simply dispatch a new If this default handling is not enough for you, you could implement a custom action and handler on the client side similar to https://github.com/eclipse-glsp/glsp-theia-integration/blob/refs/tags/v2.0.0/packages/theia-integration/src/browser/diagram/features/notification/theia-glsp-message-service.ts |
Beta Was this translation helpful? Give feedback.
Hi @wss29,
the GLSP protocol allows you to send
MessageActions
and the Theia integration has a default handling for this messages in place that automatically forwards to Theia`s message service and displays them in the message box.The message action definition looks like this:
The severity level determines whether the message is printed as info, warning or error, if details are passed an additional "Show Det…