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

plugin-dev - fix run/debug flow to work on windows + code clean #5608

Merged
merged 1 commit into from
Jul 2, 2019

Conversation

amiramw
Copy link
Member

@amiramw amiramw commented Jun 28, 2019

  • use fileSystem.getFsPath utility for HOSTED_PLUGIN as it also supports windows
  • fixed typos (one in HostedInstanceState enum is added to changelog)
  • remove unused code
  • add missing dependencies in package.json

@@ -97,8 +99,7 @@ delete PROCESS_OPTIONS.env.ELECTRON_RUN_AS_NODE;
@injectable()
export abstract class AbstractHostedInstanceManager implements HostedInstanceManager {
protected hostedInstanceProcess: cp.ChildProcess;
protected processOptions: cp.SpawnOptions;
Copy link
Member

Choose a reason for hiding this comment

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

Why is processOptions removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is not used. should i keep it anyway?

Copy link
Member

Choose a reason for hiding this comment

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

Same reason as #5608 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

as this member is never initialized or used I guess no one should use it. Updated the changelog.

Copy link
Member

@akosyakov akosyakov Jul 1, 2019

Choose a reason for hiding this comment

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

You cannot know it. Theia is a framework, there are plenty clients ouside of this repo. Please keep changes related to an issue. It seems to be one-liner to use FileUri.fsPath instead of toString.

@vince-fugnitto
Copy link
Member

@amiramw can you provide some description to the PR and also the commit message?
There is no information on what the PR attempts to achieve or what problem it solves.

@amiramw
Copy link
Member Author

amiramw commented Jun 28, 2019

I now added more informative description to commit and PR.

@akosyakov
Copy link
Member

@evidolob please review breaking changes, are you fine with them or removed members are used by Che?

@akosyakov akosyakov requested a review from evidolob July 1, 2019 08:40
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

if @evidolob is fine with breaking changes then good

Copy link
Contributor

@evidolob evidolob left a comment

Choose a reason for hiding this comment

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

I agree

- use FileUri.fsPath utility for HOSTED_PLUGIN as it also supports
windows
- fixed typos (one in HostedInstanceState enum is added to changelog)
- removed member `processOptions` from `AbstractHostedInstanceManager`
as it is not initialized or used (changelog updated)
- add missing dependencies in package.json

Signed-off-by: Amiram Wingarten <amiram.wingarten@sap.com>
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.

4 participants