Dispatch custom completer. If a match is found, suppresses all other matchers except for Jedi.
(self, context)
| 3205 | |
| 3206 | @context_matcher() |
| 3207 | def custom_completer_matcher(self, context): |
| 3208 | """Dispatch custom completer. |
| 3209 | |
| 3210 | If a match is found, suppresses all other matchers except for Jedi. |
| 3211 | """ |
| 3212 | matches = self.dispatch_custom_completer(context.token) or [] |
| 3213 | result = _convert_matcher_v1_result_to_v2( |
| 3214 | matches, type=_UNKNOWN_TYPE, suppress_if_matches=True |
| 3215 | ) |
| 3216 | result["ordered"] = True |
| 3217 | result["do_not_suppress"] = {_get_matcher_id(self._jedi_matcher)} |
| 3218 | return result |
| 3219 | |
| 3220 | def dispatch_custom_completer(self, text): |
| 3221 | """ |
nothing calls this directly
no test coverage detected