Intelliprompt custom sorting and item selection

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 4 years ago by horato
Version: 19.1.0683
Avatar

Hello,

I've implemented custom sorting logic for intelliprompt using CSharpCompletionProvider and CompletionItemSortComparer. The content of the intelliprompt window is now sorted to my liking, but when you open the prompt for a generic keyword then the intelliprompt entry, that would have been first in the list if it wasn't sorted, is selected instead of the one that actualy is first.

For example properties are sorted before keywords. When I type in the letter b and open intelliprompt, then "base" is selected first even though there are 4 properties that starts with "b" before the selected item. 

Screenshot

Is there anything I can do with this?

Thank you

Comments (1)

Answer - Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Horato,

I believe it picks that item first because it's the first item with a lowercase "b" and it prioritizes case-sensitive matches.  If you typed "B" in your case instead, it would likely pick the first item in your sort order.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.