Сustomize autocomplete menu structure

I’m exploring if it’s possible to add custom elements to the autocomplete menu structure. I understand the current structure is Tooltip > UL > LI, and I can customize the styling.

My question: Can I add a div or other elements before the UL? For example, I want to have some filters in my autocomplete menu.

I found documentation on customizing the styling of completion items, but I didn’t find anything about custom rendering for the completion menu structure itself.

Is this possible, or is the DOM structure fixed?

Thanks in advance!

No, that isn’t supported. For a use case like that, it is probably better to build some custom UI element on top of CodeMirror’s tooltip abstraction.

Thanks @marijn!