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

Add implementation for 'Show message request' LS feature #5860

Merged
merged 8 commits into from
Sep 4, 2017

Conversation

evidolob
Copy link
Contributor

@evidolob evidolob commented Aug 1, 2017

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

Yevhen Vydolob added 3 commits July 20, 2017 16:39
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>
Copy link
Contributor

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
Copy link
Contributor

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()) {
Copy link
Contributor

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>
Copy link
Contributor

Choose a reason for hiding this comment

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

new line

@codenvy-ci
Copy link

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>
@codenvy-ci
Copy link

Build # 3239 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3239/ to view the results.

@tolusha
Copy link
Contributor

tolusha commented Aug 2, 2017

Add @author annotation where it is absent.

@tsmaeder
Copy link
Contributor

tsmaeder commented Aug 2, 2017

@evidolob just wondering where the test launguage server is coming from?

@benoitf
Copy link
Contributor

benoitf commented Aug 2, 2017

@tsmaeder AFAIK eclipse-che/che-lib#33

agents/pom.xml Outdated
<profiles>
<profile>
<id>test-ls</id>
<modules>
Copy link
Contributor

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.
*
Copy link
Contributor

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;

/**
*
Copy link
Contributor

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();
Copy link
Contributor

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;

/**
*
Copy link
Contributor

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"));
Copy link
Contributor

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());
Copy link
Contributor

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;

/**
*
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

what for?

@riuvshin
Copy link
Contributor

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.

Copy link
Contributor

@riuvshin riuvshin left a 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.

Yevhen Vydolob added 2 commits August 21, 2017 10:38
…nto showMessage

Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
…is test LS enabled

Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
Copy link
Contributor

@riuvshin riuvshin left a 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

@codenvy-ci
Copy link

Build # 3481 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3481/ to view the results.

Yevhen Vydolob added 2 commits September 4, 2017 14:30
…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>
@codenvy-ci
Copy link

Build # 3522 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3522/ to view the results.

@riuvshin
Copy link
Contributor

riuvshin commented Sep 4, 2017

ci-build

@codenvy-ci
Copy link

@evidolob evidolob merged commit 2e798d6 into master Sep 4, 2017
@evidolob evidolob deleted the showMessage branch September 4, 2017 14:12
@slemeur slemeur added this to the 5.18.0 milestone Sep 28, 2017
@slemeur slemeur added the kind/enhancement A feature request - must adhere to the feature request template. label Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants