-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Honor new 'important' category of OutputEvents #138091
Comments
@roblourens I've improved the See https://github.com/microsoft/vscode-mock-debug/tree/main/sampleWorkspace#output-events (since I haven't published a new release of Mock Debug to the market place, you will have to run out of source) |
I wonder whether these messages should also be marked somehow in the debug console? |
I think it's a great idea to have them stick out using something visual (bold font, different color or some other flag). |
Yes, showing an important message in bold with a strong color (not red) makes sense. @roblourens I've published a pre-release version (1.49.1) of Mock Debug to the Marketplace. It contains the "important category" support. |
@isidorn when I log an object, we ignore the category, why is that? I figure we should still show the "important" notification when logging an object |
@roblourens I agree, we should not drop the category on logged objects. |
I guess we style the object differently and just don't have a style for it. @misolori I wonder whether we should show an error icon next to logged errors in the debug console. Currently the only difference is the text color. Then we could just show the same icon next to a logged object |
Implemented this. @polinasok out of curiosity can you give an example of when you will use this? I noticed that since 'important' is a category, we can't mark a message as "important error" vs "important info". Is that your intention with the API change or would you want to be able to differentiate these things? |
@roblourens from a DAP perspective there is no concept of "info" vs. "error". |
@roblourens cool! |
Also if you expand that notification, the debug session name is set as the "source" so you can tell why it is showing up. I will open another issue for setting an icon on debug console stderr messages. I think that could be an accessibility issue right @isidorn? |
We might want to use this for errors or for very important info messages (as opposed to just general logging that users might or might not need/want to inspect). Here are some of the examples:
|
@roblourens we should not ignore the category. I forgot the original intention when I coded that up. |
Verification steps
|
The mock above shows a pop-up. Will it disappear on its own after a while or will the user always have to close it manually? |
Yeah, they timeout after 30s or so, and after that you can click the bell indicator to see the list of notifications. |
Seems to work. I wonder if the notifications should automatically be dismissed if they're still open when the session ends. It could be annoying if there was an error in a session that generated a lot of messages the user would need to manually close.. |
If the debug sessions end quickly because of the "important" issues shown as notifications, then dismissing them immediately is not that helpful. But dismissing them when starting a new session might be a better approach. |
That makes sense. They should only dismiss when a debug configuration of the same name as created them is started. |
If it's annoying, you can just hit esc, otherwise they will automatically hide relatively quickly. Is it that bad? |
@polinasok I was wondering whether you ever adopted this? I don't think I see any usages of the "important" category in the vscode-go or delve repos. I'm asking because I was rethinking the decision to make this a notification, in microsoft/debugpy#1019 |
I guess I'm not sure whether @polinasok is still working on that, if not it looks like @hyangah has been active on it |
Delve-Dap has not adopted this yet. But it should. Pop-up is nice - similar to |
As a follow up to microsoft/debug-adapter-protocol#218, please highlight output messages tagged as 'important'. Perhaps log this in the console and trigger a
showUser
-like pop-up that disappears after a couple of moments?The text was updated successfully, but these errors were encountered: