I am looking to implement JS (ESM) intellisense for vscode within the Firefox codebase for a specific distribution of Firefox.
Within Firefox, I need to register modules in build scripts like moz.build and import them using paths such as "resource://gre/modules/XPCOMUtils.jsm". Unfortunately, there is no autocomplete functionality available for these codes. (This does not align with the one-by-one directory structure.)
I have come across jsconfig.json, but it lacks dynamism.
Is there a way to achieve this? Should I manually generate jsconfig.json with individual paths?