Tons of unrelated completion candidates shown when a candidate is fulfilled #79
Description
This issue only arises with mspyls in emacs. I've made sure by running pyls in emacs, as well as mspyls in VScode and none of the issues happened.
To reproduce the problem in a python buffer with mspyls + lsp-mode enabled, supposed we're trying to have autocompletion for print()
. Start off by typing p
followed by r
and i
, n
etc. and we'll see the candidates narrow down and become fewer.
Specifically, at prin
we'll see that only 5 candidates are present, namely, print
, ImportWarning
, StopIteration
..... Of course, this is due to the fuzzy match result.
The strange thing now happens as soon as I hit t
to complete print
. Now with either mspyls in VSCode or pyls in emacs, only a single candidate print
will remain in the tooltip. However, with mspyls in emacs, the tooltip is suddenly filled with hundreds (maybe more) of unrelated candidates such as if
, else
, bin
, bool
, break
, AttributeError
, compile
, continue
, copyright
etc. As if it was a completion for a wildcard character.
P.s. I'm on macOS with Emacs 27.0.50