-
Notifications
You must be signed in to change notification settings - Fork 166
Support other dependency mechanisms through the plugin API #279
Comments
How similar is goog.require to standard AMD require? If it is as simple as just looking for a different name then it would be realtively easy generalize current implementation to recognize goog.require. But if the algorithms for configuring and resolving differ then it may be more difficult. Also the dependency resolution is not really plugable at the moment. It is pretty much hard coded to support amd/requirejs and commonjs/node. Making it plugable would be desirable of course, but probably take quite a bit more engineering/coding work. |
hmm... well, actually its a bit different, instead of assuming any kind of file structure, closure reads through all the js files in a directory and looks for goog.provide statements (the modules), and assembles a goog/deps.js which has the module name to file location mapping. hmm... well sounds like this won't be possible in the near future. Is there any way to just specify a directory whose contents would just get added to the auto complete, regardless of what file you're working on? |
On the configuration page (https://github.com/scripted-editor/scripted/wiki/Configuration) search: { But it's all about excluding or deemphasizing, could this be a location that is used to configure files that should get processed for content-assist? |
Sorry for not ansering earlier. It's just not an easy question :-) Unfortunately I don't think its as simple as just computing a list of files Scripted does have some support for 'global' dependencies. I.e. when people I.e. in one fille you write: function myGlobalFunction() {... } Then in another file you write var result = myGlobalFunction() If all you wanted is this kind of support, then it may be possible to hack Is that what you wanted? Or does the google module system actually have Kris On Fri, May 24, 2013 at 12:08 PM, chris marx [email protected]:
|
I'm using closure's dependency mechanism, seems like this should be an easy enough candidate for a plugin, so that instead of looking for "requires" it would look for "goog.require", etc.
The text was updated successfully, but these errors were encountered: