Community
Participate
Working Groups
ECMAScript is the programming language defined by Ecma International upon which JavaScript is based. RFC 4329 defines it as having the ".es" file extension. Would it be possible for Eclipse WTP to treat ".es" files the same way it treats ".js" files, in terms of colour-coding, etc.?
So basically all that needs to be done is to add the "es" extension to the javascript content type in javascript.core's plugin.xml? This would basically be the equivalent of a user going to Preferences->General->Content Types->Text/JavaScript and Add..-ing *.es to the list of file associations. Dave, have you tried this? Does everything look okay? Do you have some example *.es files you could attach?
Created attachment 50093 [details] Test ECMAScript file
Yes, it really is that simple! :o) Thank you Amy.
I'll work on this one for bugday.
cc'ng Nitn
Created attachment 74750 [details] Adds *.es files to the valid JavaScript editor contentTypes. This patch updates the plugin.xml, with the necessary "es" added to the contenttype extension. Now .js, and .es files are automatically associated with the javascript editor.
Nitin, this is a pretty straightforward patch :)
True, but it is still Amy's to review (and I always forget when whitespace is or is not significant in extension points--it infuriatingly varies case by case).
Patch looks good to me. I'm going to target wtp 3.0 m1 since this is an enhancement. Thanks, Dave. (In reply to comment #8) > (and I always forget when whitespace is or is not significant in extension > points--it infuriatingly varies case by case). If you mean a whitespace between file extensions, in all our other plugins where we specify extensions for content type, we use no whitespace. This patch had a whitespace, but it did not seem to matter. It still worked.
Sorry, I mean I'll put it in for 3.0 M2.
Fix released for this week's wtp 3.0 m2 integration build. Thanks again, Dave.
mass change to add 'contributed' keyword based on bugzilla query, please correct if that's not accurate (by marking patches as obsolete and removing the 'contributed' keyword.