1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Added support for autocomplete inserting property overrides

This commit is contained in:
Brian Fiete 2019-09-29 09:21:51 -07:00
parent ce66b658c4
commit c931f92632
4 changed files with 148 additions and 28 deletions

View file

@ -2184,12 +2184,14 @@ namespace IDE.ui
bool allowChar = true;
mIsInKeyChar = true;
String insertType = scope String();
mAutoComplete.InsertSelection(theChar, insertType);
String insertStr = scope String();
mAutoComplete.InsertSelection(theChar, insertType, insertStr);
mIsInKeyChar = false;
if (insertType != null)
{
//mGenerateAutocompleteHandler(false, false);
if ((insertType == "method") && (theChar == '('))
if (((insertType == "method") && (theChar == '(')) ||
((insertType == "token") && (insertStr == "override")))
{
if (IsCursorVisible(false))
mOnGenerateAutocomplete('\0', default);