Yes, the LSP server is sending insertTextFormat = InsertTextFormat.Snippet (the value 2). I have verified that @codemirror/lsp-client treats the completions as snippets and sets the item.apply function correctly. The tab stops work as expected in the editor too.
The LSP server provides item.insertText and item.label for each completion item, but it looks like item.label is never used in the lsp-client.
When I do some console.logging, I can see that the returned option on L85 includes the label, type, apply, info and detail fields where label still includes the tab stops, e.g. “label”: “function(${1})”,
I’m basically looking for a way to display the completion options in the dropdown without including the tab stops. I did a quick-fix with the above one-line change and saw that it solved my issue, but I don’t know if it’s the right solution in the bigger picture. If I’m debugging in the wrong place, please let me know.
Thank you! I can confirm that it fixes the issue for me. Would it be possible to mark a new version within a week or two, so it will be available on npm?