{ "id": "140035", "key": "AC-1372", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-09-29T01:00:06.000+0000", "created": "2014-11-19T17:12:24.000+0000", "labels": [ "WebView", "defect", "studio3" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:47.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "According to the documentation, when using a WebView any js file which is loaded locally but dynamically must have an extension of .jslocal to avoid it being removed at build time.\r\n\r\nHowever, when working with these files Studio does not recognise them as a valid javascript extension so none of the coding helpers are available. The editing experience becomes only a fraction better than notepad.", "attachment": [], "flagged": false, "summary": "Titanium Studio doesn't recognise .jslocal as a valid javascript file", "creator": { "name": "AdrianHolmes", "key": "adrianholmes", "displayName": "Adrian Holmes", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "AdrianHolmes", "key": "adrianholmes", "displayName": "Adrian Holmes", "active": true, "timeZone": "Europe/London" }, "environment": "Titanium Studio, build: 3.4.0.201409261227", "comment": { "comments": [ { "id": "332935", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Do the docs really say 'must'? .jslocal is arbitrary. It just cant be .js, as those get processed by the build scripts.\r\n\r\nAs for this being a bug, not so much. You just need to setup the file associations in your preferences\r\n\r\nSet the file association\r\n!http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/36ac6831-5502-4e75-8258-6e9319842c54/00000706.png!\r\n\r\nSet the content-type\r\n!http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/9f76eb11-ff23-4285-8c55-db658519f009/00000707.png!", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-19T17:40:51.000+0000", "updated": "2014-11-19T17:40:51.000+0000" }, { "id": "333034", "author": { "name": "AdrianHolmes", "key": "adrianholmes", "displayName": "Adrian Holmes", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for this, I did look for this feature but would have expected 'Preferences' to fall under the 'Edit' menu. Anyway, not too worry all done now, I look harder next time :)\r\n\r\nCopied from the 3.x docs...\r\n\r\nFor local JavaScript files not referenced in static local HTML files, for example, a dynamically-genereated HTML file referencing a local JavaScript file, rename the file extension of the local JavaScript files to '.jslocal' instead of '.js'.\r\n\r\nAs an improvement to Studio perhaps this association should be pre-configured as the docs are explicit with regards to the name?\r\n\r\n", "updateAuthor": { "name": "AdrianHolmes", "key": "adrianholmes", "displayName": "Adrian Holmes", "active": true, "timeZone": "Europe/London" }, "created": "2014-11-20T10:38:45.000+0000", "updated": "2014-11-20T10:38:45.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }