History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-20400
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Turning Javascript plugin On and Off adds some garbage to custom code style schemes

Created: 24 Aug 07 19:45   Updated: 16 Oct 07 00:05
Component/s: JavaScript
Fix Version/s: Diana Final

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,241


 Description  « Hide
1. Provide some custom global code style scheme YourCodeStyle. Get corresponding file: user.home/.IntelliJIdea*/config/codestyles/YourCodeStyle.xml.
2. Run with Javascript plugin enabled (if not yet before). Open global code style settings. Check General page, file types tabbed pane. All code style schemes have got "Javascript" tab in addition to "Java", "JSP", "XML", "Other".
3. Close settings dialog. Check YourCodeStyle.xml. It has got additional element:
<ADDITIONAL_INDENT_OPTIONS fileType="js">
    <option name="INDENT_SIZE" value="4" />
    <option name="CONTINUATION_INDENT_SIZE" value="8" />
    <option name="TAB_SIZE" value="4" />
    <option name="USE_TAB_CHARACTER" value="false" />
    <option name="SMART_TABS" value="false" />
    <option name="LABEL_INDENT_SIZE" value="0" />
    <option name="LABEL_INDENT_ABSOLUTE" value="false" />
  </ADDITIONAL_INDENT_OPTIONS>

(First question is why is it added? Javascript settings are not changed from default.)
4. Turn Javascript support plugin Off. Restart IDEA.
5. Open code style settings again. Default scheme has no Javascript tab anymore, but YourCodeStyle has Unknown tab.
6. Close settings dialog. Check YourCodeStyle.xml: <ADDITIONAL_INDENT_OPTIONS fileType="js"> is changed to <ADDITIONAL_INDENT_OPTIONS fileType="">.
7. Turn On Javascript support again: YourCodeStyle has got new Javascript tab. Unknown tab is preserved.

The problem is at least point 5.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.