Source

ropemode_py3k / ropemode / interface.py

Diff from to

File ropemode/interface.py

     def completions(self):
         return _CodeAssist(self, self.env).completions()
 
+    @decorators.local_command()
+    def extended_completions(self):
+        return _CodeAssist(self, self.env).extended_completions()
+
     def _check_autoimport(self):
         self._check_project()
         if self.autoimport is None:
         return [self.env._completion_text(proposal)[prefix:]
                 for proposal in proposals]
 
+    def extended_completions(self):
+        proposals = self._calculate_proposals()
+        prefix = self.offset - self.starting_offset
+        return [[proposal.name[prefix:], proposal.get_doc(),
+                 proposal.type] for proposal in proposals]
+
     def _apply_assist(self, assist):
         if ' : ' in assist:
             name, module = assist.rsplit(' : ', 1)