The spec says that filterText can be provided to be used as the sort and filter keys, and that label is used if it is falsey.
It currently filters on the text key of the converted completion. This value was set to the value of insertText, which can be a full on snippet and so is not a good candidate for filtering, nor following the spec at all.
The spec says that
filterText
can be provided to be used as the sort and filter keys, and thatlabel
is used if it is falsey.It currently filters on the
text
key of the converted completion. This value was set to the value ofinsertText
, which can be a full on snippet and so is not a good candidate for filtering, nor following the spec at all.