autocomplete events

Do I get an event , when I click on autocomplete , I need to show something when user select something from autocomplete list

No, but you do get a transaction with the pickedCompletion annotation, which you can observe in your state field update methods and/or an update listener.

Can you add an example of how to use it

Did you find how to do this?

yes I passed a userEvent in apply of autocompletion , and used EditorView.updateListener and got that in annotations in transactions

Can you post some sample code on how you did it. I did use updateListener but was unsuccessful. I need to know where I’m going wrong. Thanks in advance.