Replies: 3 comments
-
[Lucas Koehler] Hello Vincent, Could you open an issue in the tree editor repository: https://github.com/eclipse-emfcloud/theia-tree-editor/issues? Then you're also directly subscribed to it :) |
Beta Was this translation helpful? Give feedback.
-
[Vincent HEMERY] Thanks Lucas. I did submit eclipse-emfcloud/theia-tree-editor#21 |
Beta Was this translation helpful? Give feedback.
-
[Lucas Koehler] Thanks! Yea, I suppose it won't be trivial to implement this. So I cannot guarantee when we might get to implementing it. Of course, if you want to provide a PR, I'll gladly review it and answer further questions that might occur during implementation :) |
Beta Was this translation helpful? Give feedback.
-
Hello, I would like to implement the TreeEditor.ModelService (@eclipse-emfcloud/theia-tree-editor) interface using the EMF.cloud Model Server to get TypeSchema and the UiSchema.
Yet, the ModelServerClient gives me a Promise, which I can't return in getSchemaForNode and getUiSchemaForNode implementations since the method is synchronous and does not return a Promise.
Is it intentional ? (for performance reasons ?)
Could the TreeEditor.ModelService evolve to use MaybePromise (@theia/core) return types ?
I must confess I'm quite new to Typescript, so maybe there is an obvious workaround - which I don't know about - to collapse the Promise into a synchronous result or to make the method implementation asynchronous... but after asking my friend G****e, it does not look like something feasible to me.
Thanks in advance for your ligths on that matter.
original thread by Vincent HEMERY
Beta Was this translation helpful? Give feedback.
All reactions