Project: appceleratorstudio
Issue TISTUD-6181: Studio: Typing "label1" at certain pace causes autofill with "Ti.API.log('info',})"
h5. Description: At certain typing rates, typing "label1" results in the text being replaced with "Ti.API.log('info',})". Not only is this not ideal, the text throws an error in the editor which is "Syntax error: Unexpected token "}" h5. Steps to reproduce: 1) Open any js file in studio. 2) Type "label1" h5. Result: If your typing rate was conducive, the text will be replaced. If not, it will work as expected. h5. Expected Result: "label1" Text remains as entered h5. Notes: Typing fast or slow may not produce the issue. Michael mentioned that: This problem happens due to that there is only one proposal for the case of label1 when '1' is typed, and the proposal is a code snippet. To turn the behavior off, there is the option in Preferences > Studio > Content Assist > "Insert single proposals automatically."
Story points: 8