code: def go_to_index(self, index):
          
          return CompletionState(self.original_document, self.current_completions, complete_index=index)
docs: Create a new :class:`.CompletionState` object with the new index.