| Summary: | Format JS indents object literals incorrectly in .json and .js | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Adrian Aichner <adrian.aichner> |
| Component: | JS Tools | Assignee: | Project Inbox <orion.client-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | adrian.aichner |
| Version: | 5.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
I just checked this is still broken. Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html |
Starting with a test.json containing just this: { "name": "name","title": "title","dependencies": ["menuitems", "addon-sdk"] } The first [Format JS] (without any text selection) works as expected: { "name": "name", "title": "title", "dependencies": ["menuitems", "addon-sdk"] } Doing [Format JS] (without any text selection) again shows the problem: { "name": "name", "title": "title", "dependencies": ["menuitems", "addon-sdk"] } This indentation suggests an incorrect hierarchy level. Same happens when the file is named test.js. It also happens when indenting var obj = { "name": "name","title": "title","dependencies": ["menuitems", "addon-sdk"] }; twice.