-
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
Add implementation for 'Show message request' LS feature #5860
Conversation
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
|
||
<g:HTMLPanel addStyleNames="{style.button-block}"> | ||
</g:HTMLPanel> | ||
</ui:UiBinder> |
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.
new line
this.view.setDelegate(this); | ||
} | ||
|
||
// @Override |
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.
Do we need this comment code fragment?
|
||
@Override | ||
public void onEnterClicked() { | ||
// if (view.isOkButtonInFocus()) { |
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.
Do we need this comment code fragment?
<g:HTMLPanel addStyleNames="{style.content-block}" debugId="dialog-confirm"> | ||
<g:SimplePanel ui:field="content" addStyleNames="{style.content}"/> | ||
</g:HTMLPanel> | ||
</ui:UiBinder> |
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.
new line
Build # 3232 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3232/ to view the results. |
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
Build # 3239 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3239/ to view the results. |
Add |
@evidolob just wondering where the test launguage server is coming from? |
agents/pom.xml
Outdated
<profiles> | ||
<profile> | ||
<id>test-ls</id> | ||
<modules> |
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 are the purpose of this profile?
|
||
/** | ||
* Test Language server agent. | ||
* |
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.
too many spaces.
import org.eclipse.che.inject.DynaModule; | ||
|
||
/** | ||
* |
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.
?
@Provides | ||
@Singleton | ||
protected Gson gson() { | ||
return DtoFactory.getInstance().getGson(); |
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.
very strange way to bind gson
import static java.util.Arrays.asList; | ||
|
||
/** | ||
* |
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.
?
result.complete(null); | ||
} | ||
// if (showMessageRequestEndpointIds.size() > 1) { | ||
// result.completeExceptionally(new Exception("Can't send show message request, too meany clients")); |
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 is it?
LOG.info(message.getMessage()); | ||
break; | ||
case Log: | ||
LOG.debug(message.getMessage()); |
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.
default?
import java.util.List; | ||
|
||
/** | ||
* |
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.
?
CompletableFuture<Pair<LanguageServer, InitializeResult>> initialize = initializer.initialize(launcher, client, "/tmp"); | ||
Pair<LanguageServer, InitializeResult> resultPair = initialize.get(); | ||
server = resultPair.first; | ||
Thread.sleep(1200); |
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 for?
maven profile that affects final assembly is not acceptable solution here due to many reasons, for example how you would test tagged version if that profile is not default and should be included only for testing purposes. We have to rework this somehow to be able to enable / disable this without rebuild. |
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.
we should not have that profile, as we discussed that should be reworked to be configurable.
…nto showMessage Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
…is test LS enabled Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
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.
please do not merge this before release 5.17.0 is done. And also please create an issue to use this test LS in QA tests
Build # 3481 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3481/ to view the results. |
…nto showMessage Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com> # Conflicts: # core/che-core-api-core/src/main/java/org/eclipse/che/api/core/jsonrpc/commons/reception/ResultConfiguratorFromOne.java
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
Build # 3522 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3522/ to view the results. |
ci-build |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/3523/ |
What does this PR do?
Add implementation for 'Show message request' LS feature
What issues does this PR fix or reference?
#1794
Changelog
Add implementation for ShowMessage Request Language Server protocol feature
Release Notes
Add implementation for ShowMessage Request Language Server protocol feature