[apps/code] Do not autocomplete with arguments

Eg : arr|ow(x,y,dx,dy) should give arrow(|,,,)
This commit is contained in:
Léa Saviot
2020-05-04 14:28:49 +02:00
committed by Émilie Feral
parent e4aac3f9c6
commit c915eb0b27
3 changed files with 32 additions and 17 deletions

View File

@@ -39,6 +39,7 @@ public:
const char * autocompletionAlternativeAtIndex(int textToAutocompleteLength, int * textToInsertLength, bool * addParentheses, int index, int * indexToUpdate = nullptr);
void loadVariablesImportedFromScripts();
void empty();
void insertAutocompletionResultAtIndex(int index);
private:
constexpr static size_t k_maxNumberOfDisplayedItems = (Ion::Display::Height - Metric::TitleBarHeight - Metric::PopUpTopMargin) / ScriptNodeCell::k_simpleItemHeight + 2; // +2 if the cells are cropped on top and at the bottom