DynamoDS/Dynamo — pull request #2988 by aparajit-pratap (2014-11-06 09:10:34+00:00)
Title: Fix for completion while typing - MAGN-5139

This submission fixes an issue in "completion as you type" where if you select an item in the completion window after typing something and then edit the item selected, in the code block, by either doing a backspace on a few characters or by continuing to type immediately after the string, the completion window pops up again. On a subsequent selection of an item from the completion window, the newly selected string is appended to the existing string in the code block which is incorrect behavior. See defect: http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-5139 for reference.

This fix prevents the completion window from appearing again unless the first string is deleted completely and the user begins typing again. This is the conventional auto-completion behavior in standard IDE's like Visual Studio and prevents unexpected results like the one shown in the defect.

Note: This is a UI related fix and the current autocompletion API-based test fx cannot support testing this behavior.

@Benglin please review.