Recently, I wrote a few lines of Javascript code using Aptana Studio 3 for a web project and decided to outsource some of it.
Here is the original code structure:
(function(window) {
var App = { // properties and functions...
};
App.SubObject1 = { // properties and functions...
};
App.SubObject2 = { // properties and functions...
};
// more sub objects here...
window.App = App;
})(window);
As the code grew to over 1000 lines, I made the decision to move the subobjects into separate JS files within the same folder to make development more manageable. I also eliminated the anonymous self-calling function to help Aptana Code Assist recognize the code within.
The Issue
Unfortunately, the code assist (code completion, etc.) seems to struggle to recognize all the code in the different JS files properly. Some files are able to read code from other files, while others are not able to. I've tried indexing, refreshing, and cleaning up the project, but there have been no changes. I have also confirmed that there are no parse errors in my code.
Is there a way to connect these files for better recognition?
How do you manage a large amount of JS code in Aptana?
Thank you!