| Summary: | Provide formatting support in the JS tools | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> | ||||||||||
| Component: | JS Tools | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | enhancement | ||||||||||||
| Priority: | P3 | CC: | curtis.windatt.public, Olivier_Thomann, snorthov | ||||||||||
| Version: | 10.0 | ||||||||||||
| Target Milestone: | 13.0 | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Whiteboard: | |||||||||||||
| Bug Depends on: | 423072 | ||||||||||||
| Bug Blocks: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Michael Rennie
Should be pretty straightforward CQ is here: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=11623 We should also provide support for: 1. the jsbeautifyrc files 2. pref pages 3. html and css formatting (both are also included in the js-beautify source > Should be pretty straightforward I agree - all of the versions of js-beautify are built with AMD support out of the box - so in theory we should not have to modify the code (fingers crossed!) Everything is ready to be delivered. Waiting after the CQ 11623 clearance. Delivered. Michael, please give it a try. Reopening - the CQ is not approved. Once bug 423072 is fixed we should move the formatting support for HTML and CSS out of the JS tools and into the webtools bundle We also need to extend the JSON content type with 'jsbeautifyrc' (which is plan JSON content) (In reply to Michael Rennie from comment #7) > We also need to extend the JSON content type with 'jsbeautifyrc' (which is > plan JSON content) The banner message for overriding config files mentions Tern, when Tern has nothing to do with formatting: "Warning: Global settings for tern are overriden by the settings defined in: .jsbeautifyrc" What comes after "for" is the project's name for which the settings are overriden. This is the same message we display for .eslintrc usage. What project were you in when you got this message ? Created attachment 262728 [details]
Proposed patch
Patch that fixes all issues reported so far.
(In reply to Olivier Thomann from comment #9) > What comes after "for" is the project's name for which the settings are > overriden. This is the same message we display for .eslintrc usage. What > project were you in when you got this message ? Ha! I didn't even realise I was in a project named 'tern', it makes sense / works. Created attachment 262921 [details]
Proposed patch
Created attachment 262923 [details]
Proposed patch
Created attachment 262926 [details]
Proposed patch
Delivered. |