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

Use theia-plugin-ext from node_modules. #464

Merged
merged 1 commit into from
Oct 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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