-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
Can one of the admins verify this patch? |
ci-build |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1070/ |
@evidolob |
@@ -93,4 +93,5 @@ | |||
<!-- Specify the paths for translatable code --> | |||
<source path='client'/> | |||
<source path='shared'/> | |||
<collapse-all-properties /> |
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.
What the reason add collapse-all-properties? Did you get real performance improvement?
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.
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.
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.
@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]>
great, thanks! |
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]>
What does this PR do?
Added a ShowMessageProcessor and a ShowMessageMessager classes to process
incoming
window/showMessage
notification and display a notificationin
float
mode in the UI if the message type iserror
orwarning
, inthe events panel otherwise. Note that the notification type for
error
messages is incorrectly set to
Log
because of a bug in the typefoxdependency:
io.typefox.lsapi.MessageType#Log
has the value1
instead of4
.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 (theLanguage Server support for the 'test-lang' will be activated), then
type the following line
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]