Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 399573

Summary: Only one editor plugin is fired
Product: [ECD] Orion Reporter: Ken Walker <ken_walker>
Component: ClientAssignee: Susan McCourt <susan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi
Version: 1.0   
Target Milestone: 2.0 RC1   
Hardware: All   
OS: All   
Whiteboard:

Description Ken Walker CLA 2013-01-30 21:57:55 EST
I have two plugins installed within the editor, JSBeautify and another one I use to convert double to single quotes.

Now, if I press the JSBeautify button, the Double to Single Quotes plugin is run.  If I disable the second plugin, the JSBeautify plugin works again.
Comment 1 Susan McCourt CLA 2013-01-30 22:44:16 EST
Which one appears first (left to right)?  JsBeautify I'm guessing.

If the quote plugin appears last then I suspect it's the #*&#$(*@ infamous wrong binding of a loop variable and I will kneel before the coding convention gods, admit my transgressions and switch to forEach.  I thought I had grown out of that kind of bug.

If the quote plugin appears first than I'm not sure that's it, but I'll take a look regardless.
Comment 2 Simon Kaegi CLA 2013-01-31 00:17:55 EST
There is a sinner on line 376 (and referenced on 390) of editorCommands.js that can only be healed by a true believer in forEach...
Comment 3 Susan McCourt CLA 2013-01-31 12:31:00 EST
fixed in
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=871803aa11152c362a2ab9612e1883aeda3a2e80

As penance and proof of my coding convention loyalty I also fixed all jslint errors, externalized two previously untranslated and wrongfully concatenated messages, and cleaned up all jslint warnings except for the "better in dot notation" message key warning.
Comment 4 Susan McCourt CLA 2013-02-02 15:07:11 EST
Ken mentioned yesterday (Friday) that it didn't seem to work.  I just tested ide.css with "toRGB" and "UPPER" installed, and it seems to work.  So I think it could have been a problem with the plugin Ken was using.  Or else there's a more subtle case.

Ken, can you double check?