Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Extend GLSP Protocol with "initialize" method #302

Merged
merged 2 commits into from
Jul 17, 2019
Merged

Conversation

martin-fleck-at
Copy link
Collaborator

  • Allow client to send an initialize with parameters to server
  • Extend server to handle initialize and the initialize options
  • Add example options that are logged to the Workflow example

- Allow client to send an initialize with parameters to server
- Extend server to handle initialize and the initialize options
- Add example options that are logged to the Workflow example
@martin-fleck-at martin-fleck-at requested a review from tortmayr July 16, 2019 11:28
deactivate(): void {
this.toDeactivate.dispose();
}

protected createInitializeParameters(): InitializeParameters {
const initOptions = this.createInitializeOptions();
return initOptions ? { options: initOptions } : {};
Copy link
Collaborator

Choose a reason for hiding this comment

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

FYI: This could be simplified by reusing the interface key name for the const:

const options = this.createInitializeOptions();
return { options };

Copy link
Collaborator

@tortmayr tortmayr left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 Code looks good and works like a charm.
However this does not work for the standalone use-case because the client code is tightly coupled to the theia-integration. We should create an issue for that.

@tortmayr tortmayr merged commit ea3e4b2 into master Jul 17, 2019
@tortmayr tortmayr deleted the feature/initialize branch July 17, 2019 11:37
tortmayr added a commit that referenced this pull request Jul 17, 2019
tortmayr added a commit that referenced this pull request Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants