Show More
@@ -1769,11 +1769,16 b' class IPCompleter(Completer):' | |||||
1769 | category=ProvisionalCompleterWarning, stacklevel=2) |
|
1769 | category=ProvisionalCompleterWarning, stacklevel=2) | |
1770 |
|
1770 | |||
1771 | seen = set() |
|
1771 | seen = set() | |
1772 | for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000): |
|
1772 | try: | |
1773 | if c and (c in seen): |
|
1773 | for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000): | |
1774 |
|
|
1774 | if c and (c in seen): | |
1775 | yield c |
|
1775 | continue | |
1776 |
|
|
1776 | yield c | |
|
1777 | seen.add(c) | |||
|
1778 | except KeyboardInterrupt: | |||
|
1779 | """if completions take too long and users send keyboard interrupt, | |||
|
1780 | do not crash and return ASAP. """ | |||
|
1781 | pass | |||
1777 |
|
1782 | |||
1778 | def _completions(self, full_text: str, offset: int, *, _timeout)->Iterator[Completion]: |
|
1783 | def _completions(self, full_text: str, offset: int, *, _timeout)->Iterator[Completion]: | |
1779 | """ |
|
1784 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now