-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
plugin: fix message-service #7500
Conversation
Fixes #7332 Fixes #7491 The following commit fixes the following issues: - it should now be possible for plugins to call the `showMessage` with newlines when using the `modal` MessageOption`. - the `showMessage` should now support displaying the `isCloseAffordance` MessageType option. - fixes the argument type for `MessageItem`. Signed-off-by: vince-fugnitto <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked all 6 commands in my local env, and all worked.
Thank you Vincent !
@AlexTugarev Is it fine with you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! That works as advertised 👍
@benoitf any breaking changes for che? |
@vince-fugnitto are you going to merge it? if we break something we can revert/fix it with a follow-up PR |
Thank you, I'll merge it, it's been in review a while now for others to see. |
What it does
Fixes #7332
showMessage
(ex:showInformationMessage
), when using themodal
MessageOption.Fixes #7491
showMessage
proxy to accept MessageItem type, and ultimately respect theisCloseAffordance
option. Previously, theclose
button was always added to the dialog which did not match the behavior present in VS Code.How to test
Message:
Available Commands:
Show Message
:displays a standard notification
Show Message (New Lines)
:displays a standard notification message (new lines are unsupported in notifications
Show Modal Message
:displays a modal dialog message
Show Modal Message (With Items)
:displays a modal dialog message with an addition button
Show Modal Message (No Close)
:displays a modal dialog message without the standard close button
Show Modal Message (No Close With Items)
:displays a modal dialog message without the standard close button and with additional buttons
Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto [email protected]