Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Use theia-plugin-ext from node_modules. (#464)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Andriienko <[email protected]>
  • Loading branch information
AndrienkoAleksandr authored Oct 3, 2019
1 parent 817d476 commit 874bf6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ChePluginApiProvider implements ExtPluginApiProvider {
initFunction: 'initializeApi',
initVariable: 'che_api_provider'
},
backendInitPath: path.join(__dirname, '../plugin/node/che-api-node-provider.js')
backendInitPath: path.join('@eclipse-che/theia-plugin-ext/lib/plugin/node/che-api-node-provider.js')
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ const localModule = ConnectionContainerModule.create(({ bind }) => {
});

export default new ContainerModule(bind => {
try {
// Force to include theia-plugin-ext inside node_modules
require('@eclipse-che/theia-plugin-ext/lib/node/che-plugin-api-provider.js');
} catch (err) {
console.log('Unable to set up che theia plugin api: ', err);
}
bind(HostedPluginMapping).toSelf().inSingletonScope();
bind(MetadataProcessor).to(RemoteMetadataProcessor).inSingletonScope();
bind(PluginReaderExtension).toSelf().inSingletonScope();
Expand Down

0 comments on commit 874bf6f

Please sign in to comment.