eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.1k stars 2.5k forks source link

Plug-ins Should be Visible across Plug-in Hosts #4512

Open tsmaeder opened 5 years ago

tsmaeder commented 5 years ago

Currently, only plugin-ins that are managed by the same plug-in hosted instance manager can see each other (via the plugin API) and communicate among themselves. I believe it would be better if the "location" of a plugin (which plugin manager, which sidecar or otherwise remote machine) would be completely transparent to the plugin. This would simplify the programming model for API consumers and give us more freedom on how to run plug-ins (for example in the same or different docker containers).

tsmaeder commented 5 years ago

This is related to https://github.com/eclipse/che/issues/12395

benoitf commented 5 years ago

AFAIK it can't be transparent, one plug-in can export (javascript export) a function (or anything) to another plug-in so if it's not in the same host, I'm not sure how it can really works

paul-marechal commented 5 years ago

@benoitf are you talking about this? https://code.visualstudio.com/api/references/vscode-api#extensions

tsmaeder commented 5 years ago

@benoitf it makes no difference whether the other plugin runs in a different process or a different machine: you still need a way to marshal/unmarshal the call. How does VS Code handle this case?