-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
greetingTitle?: string, | ||
greetingContentUrl?: string | ||
} | ||
} |
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.
Missed line.
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.
done
|
||
this.git.clone( | ||
importProjectPromices.push(this.git.clone( |
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 could use "await" here. But up to you.
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.
I am sure about that. We should start in parallel and wait for resolve importProjectPromices.
this.git.checkout(repo, options); | ||
} | ||
return Promise.resolve(); | ||
} | ||
).catch((error) => { | ||
console.error(`Couldn't clone ${source.location} to ${projectPath}... ${error}`); |
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.
Minor, but such case: clone could be done successfully, but than error can be thrown on checkout operation. Message service always displays error message "Couldn't clone...", but in this case it should only notify about checkout fail.
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.
Good catch. Done
|
||
this.onAppLoaded((event: { actions: Array<IFactoryAction> }) => { | ||
event.actions.forEach((onAppLoadedAction: IFactoryAction) => { | ||
console.log('>>>>>>>>>>> onAppLoaded.action', onAppLoadedAction); |
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.
log trace to be removed ?
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.
Done
}); | ||
this.onAppClosed(() => { | ||
this.onAppClosedActions.forEach((onAppClosedAction: IFactoryAction) => { | ||
console.log('>>>>>>>>>>> onAppClosed.action', onAppClosedAction); |
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.
log trace to remove ?
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.
Done
} | ||
|
||
getEnvVariable(name: string): EnvVariable | undefined { | ||
if (!this.envVariables) { | ||
return undefined; | ||
} | ||
return this.envVariables.find(function(envVariable) { return envVariable.name === name }); | ||
return this.envVariables.find(function (envVariable) { |
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.
use of arrow function instead ?
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.
Done
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.
missing
in che-theia-factory/package.json ?
"@theia/editor": "0.3.12",
could you also rebase ? (so it works on Theia 0.3.12) |
Done |
@@ -0,0 +1,93 @@ | |||
/* |
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.
FYI license there https://github.com/eclipse/che-theia-factory-extension/blob/master/LICENSE is EPL 2.0
so copyright headers should be 2.0 as well.
@@ -1,7 +1,7 @@ | |||
/* | |||
* Copyright (c) 2018-2018 Red Hat, Inc. | |||
* All rights reserved. This program and the accompanying materials | |||
* are made available under the terms of the Eclipse Public License v1.0 | |||
* are made available under the terms of the Eclipse Public License v2.0 | |||
* which accompanies this distribution, and is available at | |||
* http://www.eclipse.org/legal/epl-v10.html |
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.
link is still pointing to v10.html
example of EPL 2.0 headers:
https://github.com/eclipse/theia-generator-plugin/blob/master/src/app/index.ts#L1-L9
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.
FAQ being there
https://www.eclipse.org/legal/epl-2.0/faq.php#h.q72cnghf29k0
headers should be
https://www.eclipse.org/legal/epl-2.0/faq.php#h.q72cnghf29k0 |
Done |
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.
thx
Signed-off-by: Oleksii Orel <oorel@redhat.com>
What does this PR do?
Add factory events handling. Implement OpenFile action.
What issues does this PR fix or reference?
eclipse-che/che#10162
eclipse-che/che#9840
https://bluejeans.com/s/s@Q@K/
Signed-off-by: Oleksii Orel oorel@redhat.com