Intelliprompt custom sorting and item selection

SyntaxEditor .NET Languages Add-on for WPF Forum

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was before this thread was created.
Posted 12 days 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)

Posted 10 days 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

Add Comment

Please log in to a validated account to post comments.