-
Notifications
You must be signed in to change notification settings - Fork 111
Initial Che api for Theia #1
Conversation
Signed-off-by: Yevhen Vydolob <[email protected]>
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.
There is not a single comment in all the classes.
IMHO some classes should have comments to describe what they're doing
also a README file should describe the extension
extensions/eclipse-che-theia-plugin-ext/src/common/che-protocol.ts
Outdated
Show resolved
Hide resolved
extensions/eclipse-che-theia-plugin-ext/src/plugin/che-workspace.ts
Outdated
Show resolved
Hide resolved
|
||
export interface Factory { | ||
workspace: WorkspaceConfig; | ||
ide?: { |
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.
Does it related to CHE IDE or also to Theia?
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.
It's just factory configuration https://www.eclipse.org/che/docs/che-6/factories_json_reference.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.
Che is able to produce typescript definition of current DTOs
https://github.com/eclipse/che/blob/21318aeec878a02ee9a64453ad8e737204ccfe21/dockerfiles/lib/build.sh#L35-L44
might be good if we could reuse these definitions automatically instead of trying to duplicate it
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, I will look at this
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.
as an intermediate step, we could just move out upstream che definitions
to a separate .d.ts file for now
export interface Factory { | ||
workspace: WorkspaceConfig; | ||
ide?: { | ||
onAppLoaded?: { |
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.
onDidLoadApplication?
onAppLoaded?: { | ||
actions?: FactoryAction[] | ||
}; | ||
onProjectsLoaded?: { |
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.
onDidLoadProjects
onProjectsLoaded?: { | ||
actions?: FactoryAction[] | ||
}; | ||
onAppClosed?: { |
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.
The same ad s above
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.
All this fields described in factory json https://www.eclipse.org/che/docs/che-6/factories_json_reference.html
extensions/eclipse-che-theia-plugin-ext/src/common/che-protocol.ts
Outdated
Show resolved
Hide resolved
extensions/eclipse-che-theia-plugin-ext/src/common/che-protocol.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
I create separate issue for Che DTO generator eclipse-che/che#12132 |
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
**********************************************************************/ | ||
import './che-proposed'; |
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.
do we need this import ?
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.
Yes, other vice types from che-proposed
is not visible in API implementation
Signed-off-by: Yevhen Vydolob <[email protected]>
Update to upstream/master.
* Update meta to match https://github.com/ws-skeleton releases
feat(generator): update report
Signed-off-by: Yevhen Vydolob [email protected]