I'm currently working on a project that involves both a large library (which extends parts of the Google Closure Library) and a number of smaller modules which use this library. I initially tried keeping the library module & child modules as part of the same project, but it seems that for code completion to work, I need to add all of the files from my library to a JavaScript library in my module settings. In order for this to work, I need to keep my library in a separate IDEA project, but this causes problems as I need to keep two IDEA instances open and I have to remember to add any new library files to the library definition for code completion to work.
This really doesn't seem like the correct workflow for what I'd assume is a relatively common use case. In other IDEs I've been able to define my library module as a dependency of the child modules, allowing me to work on them within the same IDE & automatically making sources available for code completion. IDEA seems to handle this correctly when using other languages (ActionScript and Java being the ones that I've tried), it seems like something like that for JavaScript would be ideal. Is there any way I can set up my project to accomplish this in IDEA? If not, what's the best workaround for this scenario?