code: def complete(
          self, config, prompt, session, context, current_arguments, current
      ):
          # type: (CompletionInfo, str, ShellSession, BundleContext, List[str], str) -> List[str]
          
          # Register a method to display helpful completion
          self.set_display_hook(self.display_hook, prompt, session, context)
  
          # Return a list of component factories
          with use_ipopo(context) as ipopo:
              return [
                  "{} ".format(name)
                  for name, _, _ in ipopo.get_instances()
                  if name.startswith(current)
              ]
docs: Returns the list of services IDs matching the current state
  
          :param config: Configuration of the current completion
          :param prompt: Shell prompt (for re-display)
          :param session: Shell session (to display in shell)
          :param context: Bundle context of the Shell bundle
          :param current_arguments: Current arguments (without the command itself)
          :param current: Current word
          :return: A list of matches