Sorry for not having a clear description before.
There is no problem filtering through session.FilterItem.
What I want to know is the filtered result entered on the editing interface before opening the session.
For example, my ession.Items contains three options: AAA", "AAB" and "ABC".
I enter the word “B” in the “AA” position of the editor, and the completion list on the editor only shows AAB, but when I open Before the session, the debugging code “session.FilterItems.Count” is still equal to 3.
Of course, after opening the session, the value will become 1.
If I know that the number of items displayed before opening is 0, I will prevent it from opening. Otherwise, it will An empty window pops up, which is not an ideal experience