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-hosted: fix loading sequence of plugin API initialisation #3138

Closed
wants to merge 1 commit into from

Conversation

sunix
Copy link
Contributor

@sunix sunix commented Oct 10, 2018

Writing a backend plugin and using theia.env.getQueryParameter is failing because of loading sequence of plugin API initialisation.
With this code sample https://github.com/AndrienkoAleksandr/testQuery/blob/master/src/testQuery-backend-plugin.ts#L9, and passing parameter to the Theia url is failling logging the query parameters passed.
This PR is fixing it.

Signed-off-by: Sun Tan <sutan@redhat.com>
@benoitf
Copy link
Contributor

benoitf commented Oct 11, 2018

@evidolob it seems you did the change for #2190

@benoitf
Copy link
Contributor

benoitf commented Oct 11, 2018

PR link being #2227

@evidolob
Copy link
Contributor

The problem same as preferences has, we should pass preferences and query parameters on init call, before we start plugin. I will do it for eclipse-che/che#9990, so we can close this pull request with out merge.

@evidolob
Copy link
Contributor

#3159 should fix theia.env.getQueryParameter using

@evidolob evidolob closed this Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants