/u/hvis Would you consider changing this, since this way of deduplication in the frontend is quite inefficient? Given that the default completion UI demands that candidates are unique with respect to equal
and even deletes equal
duplicates, the backend should better produce unique candidates.
Deduplicating in the backend is not difficult, all that is needed is adding a suffix like (1), (2), (3), ... In fact, this is what I am doing in my Consult package, which also is a backend and provides completion tables. For example for the consult-line
command I was facing the same issue, that candidates must be unique with respect to equal
and not to eq
.
cc /u/JDRiverRun
It is not only fragile, it is also wrong, since the default completion UI even deletes duplicate candidates.