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

Fix work extensions with no activation function #4933

Merged

Conversation

AndrienkoAleksandr
Copy link
Contributor

Referenced issue:

#4850

Description

We count's all vscode extensions like "backend theia plugins": https://github.com/theia-ide/theia/blob/master/packages/plugin-ext-vscode/src/node/scanner-vscode.ts#L42

So let's launch all not frontend plugins like backend plugins. And In case if extension has no activation function(and plugin path in this case was not initialized) allow to initialize this extension, but don't allow load extension script and don't allow start extension script(because no main script and activation methods).

Signed-off-by: Oleksandr Andriienko oandriie@redhat.com

@AndrienkoAleksandr
Copy link
Contributor Author

@tsmaeder tested with mock debugger: https://github.com/AndrienkoAleksandr/vscode-mock-debug

@benoitf
Copy link
Contributor

benoitf commented Apr 17, 2019

FYI eclipse eca check is not green

@AndrienkoAleksandr
Copy link
Contributor Author

Hmm... after merge with master and this one commit a388fc5 my pr doesn't work any more. I will take a look...

FYI eclipse eca check is not green

Thanks, I will fix it.

@@ -67,7 +67,7 @@ export class HostedPluginSupport {
}

runPlugin(plugin: PluginModel): void {
if (plugin.entryPoint.backend) {
if (!plugin.entryPoint.frontend) {
Copy link
Member

Choose a reason for hiding this comment

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

Can plugin have frontend and backend entry points?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I talked with @evidolob. Theoretically could be plugin with both frontend and backend part, but we should not support this case and we can prevent setup such plugins with help some plugin validator #4945

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
@AndrienkoAleksandr AndrienkoAleksandr force-pushed the fixWorkExtensionsWithNoActivationFunction branch from 6fe6b49 to 19ffb9d Compare April 18, 2019 10:09
@AndrienkoAleksandr
Copy link
Contributor Author

I'm Sorry, guys my alert was wrong:

after merge with master and this one commit a388fc5 my pr doesn't work any more

I retested PR works.

@AndrienkoAleksandr AndrienkoAleksandr merged commit 13c8f37 into master Apr 19, 2019
@AndrienkoAleksandr AndrienkoAleksandr deleted the fixWorkExtensionsWithNoActivationFunction branch April 19, 2019 08:36
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.

4 participants