code: def display_hook(prompt, session, context, matches, longest_match_len):
          # type: (str, ShellSession, BundleContext, List[str], int) -> None
          
          # Prepare a line pattern for each match
          match_pattern = "{{0: >{}}}: {{1}}".format(longest_match_len)
  
          # Sort matching IDs
          matches = sorted(int(match) for match in matches)
  
          # Print the match and the associated name
          session.write_line()
          for bnd_id in matches:
              bnd = context.get_bundle(bnd_id)
              session.write_line(match_pattern, bnd_id, bnd.get_symbolic_name())
  
          # Print the prompt, then current line
          session.write(prompt)
          session.write_line_no_feed(readline.get_line_buffer())
          readline.redisplay()
docs: Displays the available bundle matches and the bundle name
  
          :param prompt: Shell prompt string
          :param session: Current shell session (for display)
          :param context: BundleContext of the shell
          :param matches: List of words matching the substitution
          :param longest_match_len: Length of the largest match