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-ext] Fix plugin api in electron packaging #2262

Merged
merged 1 commit into from
Jul 5, 2018
Merged

Conversation

evidolob
Copy link
Contributor

@evidolob evidolob commented Jul 4, 2018

Should fix eclipse-che/che/issues/9767 and #2201

Pull request do next:
Use setTimeout when setImmediate is not available.
Use absolute path for plugin script for WebWorker importScripts function

Signed-off-by: Yevhen Vydolob yvydolob@redhat.com

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@evidolob evidolob added the Team: Che-Editors issues regarding the che-editors team label Jul 4, 2018
@evidolob evidolob self-assigned this Jul 4, 2018
@@ -62,3 +67,11 @@ rpc.set(MAIN_RPC_CONTEXT.HOSTED_PLUGIN_MANAGER_EXT, new HostedPluginManagerExtIm
});
}
}));

function isElectron() {
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't have utility function somewhere else (or it's due to worker API) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No we don't, and its very specific for WebWorker

@benoitf benoitf added the plug-in system issues related to the plug-in system label Jul 4, 2018
@benoitf benoitf merged commit 2e206a5 into master Jul 5, 2018
@benoitf benoitf deleted the fix-electron branch July 30, 2018 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plug-in system issues related to the plug-in system Team: Che-Editors issues regarding the che-editors team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New plugin model doesn't work in electron version of Theia
3 participants