Since label is a reserved word in Pascal, the class TCompletionItem uses label_ as a property name. Unfortunately, this means that the serialized JSON also contains the key label_ instead of label. This confuses language server clients expecting the key label. For example, completion-nvim crashes.
A simple workaround is to escape the reserved word with &. This way, the correct JSON output will be generated.
Since
label
is a reserved word in Pascal, the classTCompletionItem
useslabel_
as a property name. Unfortunately, this means that the serialized JSON also contains the keylabel_
instead oflabel
. This confuses language server clients expecting the keylabel
. For example,completion-nvim
crashes.A simple workaround is to escape the reserved word with
&
. This way, the correct JSON output will be generated.