-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Allow notifications to have newlines #101589
Comments
this can't be a good reason to strip out new lines
Please reopen. This issue now has 20 votes required to get added to the backlog based on the consensus reached by vscode extension authors in slack. Thanks! |
well, good IDEs allow notification messages that contain paragraphs of text for more info. not sure why this is such a big deal, marked as out of scope, or what that links parsing comment has to do with this change & such a simple request. |
@bpasero Why is this out of scope? This has been asked for by the community many times, and imo feels like a very reasonable request. What is the main objection here? |
I feel that notifications are not a good place to show a lot of information. The text should be short and concise. Allowing to use newlines and potentially other formatting only asks for larger notifications that consume even more space. Does that make sense? |
While I agree with the sentiment and don't want to have larger notifications, the ability of adding a newline or so can often improve readability and user-experience. The space is still constrained so packing too much content would still be highly discouraged. Also, we aren't talking about other formatting here. |
@bpasero Isn't that up to us? If we design our extensions badly and the alerts are obnoxiously big, then people just won't use our extension... |
Let me bring this to the UX call and then report back the decision here. Depending on that call we may either close or leave the issue open. |
That is not a good argument. Every extension author feels that their extension is the best and greatest and deserves notifications with lots of text to tell the user. The user may not agree but may also not have any alternative (e.g. imagine this was the one and only Python extension or C++). We would at least need #41767 so that the user can stop an extension from spamming. |
I don't know if Slack and Windows notifications are good examples of UX for IDE notifications. I would agree that in the short form that toast would display message type (info, warning, error), perhaps an ext. name it's coming from & the 1st line of text with ... in a collapsed state. However, there are instances when we'd like to display a notification, like an error, where we would provide brief error description, & more information on the new line, if that makes sense. |
@RandomFractals I don't know, you're comparing a tool vs multiple platforms that use the same pattern. If you have other examples of better notifications please do share them. Notifications are intended to be short and concise so that the user can act upon it. If they need more information, there should be an action to see that information. I don't believe we should try to cram too much information here. |
I don't have a better example. I believe I described the typical use case & notifications in the current form don't support it. It doesn't sound like you are willing to provide that option, or formatted messages in notifications. So, feel free to close it. Thanks! |
IMO a decent compromise would be to allow a title and a body, but disallowing newlines in the body. There are some use cases where a single uninterrupted line of text just isn't the best way to preset some information. I don't agree that bodies shouldn't be able to use newlines at all, but at least having 2 lines should cover a good chunk of use cases. |
Two lines FTW. |
@bpasero - if notifications are not a good place for richer user feedback. What is the recommended approach? For example, in our extension, we show the info message while running a puppeteer test and then report the results in the same message or an error message if they fail. Having no room or flexibility to include additional data in a readable way is quite frustrating. |
I would like to be able to use newlines in the notifications.
I know it has already been rejected here, but the VSCode native alerts are able to have multi-line comments, so why isn't this an option for the extensions? If
"Notifications are imho not the right place to show structured text with formatting"
, then where else are we supposed to show complex notifications? Is there any other available location in VSCode?Also I would argue that multi-line notifications are a pretty basic thing. I am not asking for the ability to add sixteen colors and a cursive font, I just need to be able to, say, make a confirmation message which shows the contents of an object in a structured way, for example.
And I am not the only one who still wants this.
Therefore opening this as a feature request again.
The text was updated successfully, but these errors were encountered: