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

Added backend communication template #65

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

JonasHelming
Copy link
Contributor

fixed #64

Signed-off-by: Jonas Helming [email protected]

How to test:

  1. npm link
  2. yo theia-extension => select "backend communication"
  3. cd browser-app => yarn start
  4. F1 => "Say hello on the backend (with a callback to the client)
  5. Check console to have printed two messages for both commands

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

The changes work well, I was able to see the output of both commands on the backend.
I have some general comments about the pull-request.

src/app/index.ts Outdated
@@ -130,6 +131,7 @@ module.exports = class TheiaExtension extends Base {
{ value: ExtensionType.HelloWorld, name: 'Hello World' },
{ value: ExtensionType.Widget, name: 'Widget' },
{ value: ExtensionType.LabelProvider, name: 'LabelProvider' },
{ value: ExtensionType.Backend, name: 'Backend communication' },
Copy link
Member

Choose a reason for hiding this comment

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

minor: Backend Communication isntead of Backend communication

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Comment on lines +19 to +20
@inject(HelloBackendWithClientService) private readonly helloBackendWithClientService: HelloBackendWithClientService,
@inject(HelloBackendService) private readonly helloBackendService: HelloBackendService,
Copy link
Member

Choose a reason for hiding this comment

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

The injections should be outside the constructor, they align with our coding guidelines:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not consistent with other examples, too, suggest to fix it for all (I can do that):
#66

execute: () => this.helloBackendService.sayHelloTo('World').then(r => console.log(r))
});
}
}
Copy link
Member

Choose a reason for hiding this comment

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

minor: include a newline (same for all other files present in the pull-request).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@JonasHelming
Copy link
Contributor Author

Can we merge this?

@vince-fugnitto
Copy link
Member

Can we merge this?

Sure, I assume you want to do this for the whole repo instead of fixing this pull-request?

@JonasHelming
Copy link
Contributor Author

Can we merge this?

Sure, I assume you want to do this for the whole repo instead of fixing this pull-request?

yes...

@vince-fugnitto vince-fugnitto merged commit 9a8a1dd into eclipse-theia:master Jun 29, 2020
@JonasHelming
Copy link
Contributor Author

@marcdumais-work would you be able to perform a release?

@marcdumais-work
Copy link
Contributor

@marcdumais-work would you be able to perform a release?

Sure thing! Give me a few minutes.

@marcdumais-work
Copy link
Contributor

v0.1.19 is published.

@JonasHelming
Copy link
Contributor Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add backend communication template
3 participants