cefolger/needsmoredojo — pull request #157 by tommahieu (2014-01-03 13:39:35+00:00)
Title: Module ID strings can now be single quoted or double quoted strings

Hello Chris,

When adding AMD modules using needsmoredojo, it appears that module ID strings are always added as single quoted strings (e.g. 'dojo/sniff). In our projects, we delimit strings (and also module IDs) with double quotes in our JavaScript projects ("dojo/sniff").

I took the liberty to add an option to needsmoredojo where you can choose what quotes you want to use. The pull requests adds an option (radio buttons) to the settings panel. This option is picked up in the ImportCreator which uses the option to format the Module ID with single or double quotes.

Currently only the "Add Import" action respects the configuration option. The "Organize AMD Imports" still replaces quotes as before (looks at the majority of the quotes used?). The actions that move around imports leave the quotes untouched.

I'm not sure if I changed the API to your liking, please let me know if you see things differently. It's the first time I tinkered around with IntelliJ plugins, so it is all kind of new to me :).

Tom