Affects Version/s: Release 3.2.1
Component/s: Content Assist
Mac OS 10.9.1
Titanium SDK version 3.2.1.GA
Titanium Studio, build: 188.8.131.52402041146
Sprint:2014 Sprint 05
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 "}"
1) Open any js file in studio.
2) Type "label1"
If your typing rate was conducive, the text will be replaced. If not, it will work as expected.
"label1" Text remains as entered
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."