Skip to content
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

Merged
merged 1 commit into from
Apr 23, 2020
Merged

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes #7332

  • The change fixes an issue where newlines were not respected when calling any showMessage (ex: showInformationMessage), when using the modal MessageOption.

Fixes #7491

  • The change updates the showMessage proxy to accept MessageItem type, and ultimately respect the isCloseAffordance option. Previously, the close button was always added to the dialog which did not match the behavior present in VS Code.

How to test

  1. Start the application using the message-tests VS Code extension.
  2. Execute the available commands, prefixed by 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]

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]>
@vince-fugnitto vince-fugnitto added bug bugs found in the application notifications issues related to notifications vscode issues related to VSCode compatibility labels Apr 3, 2020
@vince-fugnitto vince-fugnitto self-assigned this Apr 3, 2020
@vince-fugnitto vince-fugnitto marked this pull request as ready for review April 9, 2020 12:32
Copy link
Contributor

@elaihau elaihau left a 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 !

@akosyakov
Copy link
Member

@AlexTugarev Is it fine with you?

Copy link
Contributor

@AlexTugarev AlexTugarev left a 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 👍

@vince-fugnitto
Copy link
Member Author

@benoitf any breaking changes for che?

@vince-fugnitto vince-fugnitto requested a review from benoitf April 22, 2020 13:27
@akosyakov
Copy link
Member

@vince-fugnitto are you going to merge it? if we break something we can revert/fix it with a follow-up PR

@vince-fugnitto
Copy link
Member Author

@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.

@vince-fugnitto vince-fugnitto merged commit c501482 into master Apr 23, 2020
@vince-fugnitto vince-fugnitto deleted the vf/message-service-plugin branch April 23, 2020 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application notifications issues related to notifications vscode issues related to VSCode compatibility
Projects
None yet
4 participants