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

Issue 1793: Language Server Protocol: ShowMessage Notification feature #3124

Merged
merged 1 commit into from
Dec 5, 2016
Merged

Issue 1793: Language Server Protocol: ShowMessage Notification feature #3124

merged 1 commit into from
Dec 5, 2016

Conversation

xcoulon
Copy link
Contributor

@xcoulon xcoulon commented Nov 18, 2016

What does this PR do?

Added a ShowMessageProcessor and a ShowMessageMessager classes to process
incoming window/showMessage notification and display a notification
in float mode in the UI if the message type is error or warning, in
the events panel otherwise. Note that the notification type for error
messages is incorrectly set to Log because of a bug in the typefox
dependency: io.typefox.lsapi.MessageType#Log has the value 1 instead of
4.

This issue depends on #3113
(Add a 'warning' state for the notifications)

To test the pull request, please follow the instructions on
#3123 to run the 'test-lang' server.
Once in the workspace, create a project, add a foo.test file (the
Language Server support for the 'test-lang' will be activated), then
type the following line

window/showMessage:error: a message

and wait for the editor to save the changes. This will trigger a
window/showMessage notification from the 'test-lang' server in the Che UI.

What issues does this PR fix or reference?

Issue #1793

Signed-off-by: Xavier Coulon [email protected]

@codenvy-ci
Copy link

Can one of the admins verify this patch?

@benoitf
Copy link
Contributor

benoitf commented Nov 18, 2016

ci-build

@codenvy-ci
Copy link

@tolusha
Copy link
Contributor

tolusha commented Nov 21, 2016

@evidolob
@vparfonov
Verify that patch pls.

@@ -93,4 +93,5 @@
<!-- Specify the paths for translatable code -->
<source path='client'/>
<source path='shared'/>
<collapse-all-properties />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What the reason add collapse-all-properties? Did you get real performance improvement?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, I need to remove that line. I added it as part of the trick to reduce the build time during dev, but this should not have been included in this patch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vparfonov I just pushed an update of the patch in which I removed this extra-line.

Added a ShowMessageProcessor and a ShowMessageMessager classes to process
incoming `window/showMessage` notification and display a notification
in `float` mode in the UI if the message type is `error` or `warning`, in
the events panel otherwise. Note that the notification type for `error`
messages is incorrectly set to `Log` because of a bug in the typefox
dependency: `io.typefox.lsapi.MessageType#Log` has the value `1` instead of
`4`.

This issue depends on #3113
(Add a 'warning' state for the notifications)

To test the pull request, please follow the instructions on
#3123 to run the 'test-lang' server.
Once in the workspace, create a project, add a `foo.test` file (the
Language Server support for the 'test-lang' will be activated), then
type the following line
> window/showMessage:error: a message
and wait for the editor to save the changes. This will trigger a
`window/showMessage` notification from the 'test-lang' server in the Che UI.

Signed-off-by: Xavier Coulon <[email protected]>
@vparfonov vparfonov merged commit a346454 into eclipse-che:master Dec 5, 2016
@xcoulon
Copy link
Contributor Author

xcoulon commented Dec 5, 2016

great, thanks!

@bmicklea bmicklea added this to the 5.0.0 milestone Jan 11, 2017
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
eclipse-che#3124)

Added a ShowMessageProcessor and a ShowMessageMessager classes to process
incoming `window/showMessage` notification and display a notification
in `float` mode in the UI if the message type is `error` or `warning`, in
the events panel otherwise. Note that the notification type for `error`
messages is incorrectly set to `Log` because of a bug in the typefox
dependency: `io.typefox.lsapi.MessageType#Log` has the value `1` instead of
`4`.

This issue depends on eclipse-che#3113
(Add a 'warning' state for the notifications)

To test the pull request, please follow the instructions on
eclipse-che#3123 to run the 'test-lang' server.
Once in the workspace, create a project, add a `foo.test` file (the
Language Server support for the 'test-lang' will be activated), then
type the following line
> window/showMessage:error: a message
and wait for the editor to save the changes. This will trigger a
`window/showMessage` notification from the 'test-lang' server in the Che UI.

Signed-off-by: Xavier Coulon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants