1. this.inherited resolution
If you've ever used Navigate ... Declaration (Ctrl+B) to see the super method of a Dojo module, you would be greeted with this:
Basically: a lot of this.inherited references |
Much better! |
After adding support for this.inherited resolution, it was easy to add method resolution as well. IntelliJ does a surprisingly good job of resolving methods in JavaScript, but there are still cases it will miss. For example, if you try to resolve domStyle.set(...) you will get this:
A very incorrect list of set methods |
3. AMD module resolution
This is one of my favorite new features. Let's say you have imported a module and you want to jump to its source file. By default, if you Ctrl+Click on query for example in this block of code:
define([ 'dojo/query' ], function(query) { var results = query('.foo'); });You will get directed to to the "query" parameter. Not very useful. With Needs More Dojo, it will resolve query.js and send you there. Of course this works for your modules as well, and relative or absolute path syntax.
4. Require blocks and embedded scripts
In this version, you have all AMD management functionality available for require blocks, nested or otherwise. In addition, you have all Needs More Dojo functionality available in embedded scripts in HTML, jsp, php, etc. files. You can configure the list of supported file types in the settings dialog.
Refactoring has been updated to take require blocks into account as well.
5. Quick fixes
Finally, there are several quick-fixes for existing functionality that are now available. For example, if you have an unused import, you get three quick-fixes listed:
As I said, this version has been very exciting to work on. There are some other new changes I didn't add here, but you can see the full list of things that were added on the GitHub issue page.
I expect to spend a couple of weeks testing this version, so expect it to be released in 2-3 weeks.
Hey Chris,
ReplyDeletejust got aware of your plugin from a @dojo tweet. All I can say that this plugin is fantastic. Thanks a lot! :-)
Thanks Maximilian! Please don't hesitate to open feature requests if you find something that Needs More Dojo can help you out with.
Delete