Glad you are liking CodeMix so far. As you have seen, the JavaScript support will kick in automatically when using modules, and when the source files are open (though that is sort of an inconsistency in how the support behaves).
What you need to do is create a jsconfig.json
file in the root of the project, and use an include
property to specify the folder containing the JavaScript source. You should then get content assist without having to open the source files. An example jsconfig.json file is below:
{
"compilerOptions": {
"module": "commonjs",
"target": "es6"
},
"include": ["src/**/*"]
}
This will make everything in the src
folder behave as if they were global variables, essentially in the same way it does when the files are open. You can read more about the format of the jsconfig.json file here. Please let us know if you manage to get it working, and let us know if you have any other problems or questions about CodeMix.