A structured message object. Used to return errors from requests.
| 769 | |
| 770 | // A structured message object. Used to return errors from requests. |
| 771 | struct Message { |
| 772 | // A format string for the message. Embedded variables have the form `{name}`. |
| 773 | // If variable name starts with an underscore character, the variable does not |
| 774 | // contain user data (PII) and can be safely used for telemetry purposes. |
| 775 | string format; |
| 776 | // Unique (within a debug adapter implementation) identifier for the message. |
| 777 | // The purpose of these error IDs is to help extension authors that have the |
| 778 | // requirement that every user visible error message needs a corresponding |
| 779 | // error number, so that users or customer support can find information about |
| 780 | // the specific error more easily. |
| 781 | integer id; |
| 782 | // If true send to telemetry. |
| 783 | optional<boolean> sendTelemetry; |
| 784 | // If true show user. |
| 785 | optional<boolean> showUser; |
| 786 | // A url where additional information about this message can be found. |
| 787 | optional<string> url; |
| 788 | // A label that is presented to the user as the UI for opening the url. |
| 789 | optional<string> urlLabel; |
| 790 | // An object used as a dictionary for looking up the variables in the format |
| 791 | // string. |
| 792 | optional<object> variables; |
| 793 | }; |
| 794 | |
| 795 | DAP_DECLARE_STRUCT_TYPEINFO(Message); |
| 796 |
no outgoing calls
no test coverage detected
searching dependent graphs…