Record the progress here. Suppose we do have three labels, with VSCode as the LSP client
<jiang2015apic>
<jiang2016mpm>
<bridson2008book>
Type, for example, #cite(<book, [3] will correctly pop out because it is prefixed with b. However when we're searching for apic, #cite(<apic will give a empty completion list, because the corresponding label is not prefixed with a.
Although we can mitigate this through setting editor.suggest.matchOnWordStartOnly in VSCode to false, it is not the expected default behavior. Current solution is to make use of the filterText option, by concatenating the "{label}|{bib_title}" sections, the behavior changes to:
typing #cite(<apic will correct give the match to [1]
searching for any word inside the paper title will also give the corresponding completion item.
Note that completion sorting and filtering is still provided by the client.
Record the progress here. Suppose we do have three labels, with VSCode as the LSP client
<jiang2015apic>
<jiang2016mpm>
<bridson2008book>
Type, for example,
#cite(<book
, [3] will correctly pop out because it is prefixed withb
. However when we're searching forapic
,#cite(<apic
will give a empty completion list, because the corresponding label is not prefixed witha
.Although we can mitigate this through setting
editor.suggest.matchOnWordStartOnly
in VSCode to false, it is not the expected default behavior. Current solution is to make use of the filterText option, by concatenating the "{label}|{bib_title}" sections, the behavior changes to:#cite(<apic
will correct give the match to [1]Note that completion sorting and filtering is still provided by the client.