Per spec filterText should be used for filtering when the server provides it.
If it's not provided, label should be used.
Some language server such as clangd adds some prefix to labels, such as empty
spaces. They don't work well with prefix-based filter since the additional prefix
will never match the completion prefix.
Per spec filterText should be used for filtering when the server provides it. If it's not provided, label should be used.
Some language server such as clangd adds some prefix to labels, such as empty spaces. They don't work well with prefix-based filter since the additional prefix will never match the completion prefix.
Should fix #92 and may also help #79.