Open seraphx2 opened 8 years ago
I'm trying to follow, but having a hard time understanding. Can you simplify your explanation of the issue?
Basically, if you provide a certain upper or lowercase set of keywords, type in upper or lowercase, and set scintilla.IgnoreCase equal to true or false, in most combinations of those three things, the AC popup won't actually popup. Only the ones marked success do I actually get the popup to work.
I have encountered this issue too. Some words wouldn't induce a popup for auto completion. It looked like the popup did show, but then immediately got removed again.
After further investigation it seemed that if there is a list with capitalized and non-capitalized words not sorted by capitalization, some words cannot be found. For example in "String string Take" nothing can be found if you press t. While with "String string take" if you press t take is selected. To fix the issue further testing may be required.
We solved it in our application by sorting the list ordinarily before this code fragment is executed:
if (lenEntered > 2)
scintilla.AutoCShow(lenEntered, string.Join(" ", autoShowList.ToArray()));
I've noticed some oddities while trying to get the AutoComplete to show:
Scenario 1: lowercase string-set; lowercase typing; IgnoreCase: false - SUCCESS (Expected) Scenario 2: lowercase string-set; uppercase typing; IgnoreCase: false - FAIL (Expected) Scenario 3: lowercase string-set; any typing; IgnoreCase: true - FAIL (Unexpected) Scenario 4: uppercase string-set: uppercase typing: IgnoreCase: false - FAIL (Unexpected) Scenario 5: uppercase string-set: uppercase typing: IgnoreCase: true - FAIL (Unexpected)