-
Hi, I am developing a debug-adapter that communicates with theia over a tcp socket. Background: I would like to be able to display error messages to theia user from MyDebugSession and from the debug adapter server, if possible. I tried several ways:
This is not how I want to see the message. I saw that only failure to process 'attach' DAP request results in showMessage() of the error message. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Is it something which should be aligned with VS Code? If it is so, then please file a bug request. If not, I don't think it is easily doable right now with Theia extensions. Generally we recommend to use VS Code extensions to provide language and debug support. VS Code extension API allows to install message tracker: https://github.com/microsoft/vscode/blob/44bcbe587d7f265ab0457c7931a7baab2419ad66/src/vs/vscode.d.ts#L10459 Maybe you can use it to intercept messages and add additional logic. |
Beta Was this translation helpful? Give feedback.
-
No, it is not something that should be aligned with VS Code. We wrote a theia extension which contributes a 'DebugAdapterContribution' that does rely on VS Code code, as follows: Then we start a server listening on a tcp port (3456, in the example), and thus serves theia debug requests. When we start that debug server, I would like to notify theia user upon errors (eg. failure to connect to our backend). I saw that DAP DebugProtocol.Message has an attribute called 'showUser'. What's the purpose of this attribute? |
Beta Was this translation helpful? Give feedback.
No, it is not something that should be aligned with VS Code.
We wrote a theia extension which contributes a 'DebugAdapterContribution' that does rely on VS Code code, as follows:
Then we start a server listening on a tcp port (3456, in the example), and thus serves theia debug requests.
When we start that debug server, I would like to notify theia user upon errors (eg. failure to connect to our backend).
I would like to notify theia user about fatal errors ocurring during a debug session as well.
The only means I have now to do so are error DAP responses or DAP 'output' event. In both cases, the error message is not displayed to the user.
I saw that DAP DebugProtocol.Message has an attri…