import { ContainerModule } from "inversify" ; import { BackendApplicationContribution } from "@theia/core/lib/node" ; import { RegistryProxy } from "./proxy" ; export default new ContainerModule ( bind => { bind ( RegistryProxy ) . toSelf ( ) . inSingletonScope ( ) ; bind ( BackendApplicationContribution ) . toDynamicValue ( ctx => ctx . container . get ( RegistryProxy ) ) . inSingletonScope ( ) ; } ) ;