Our vscode extension can't even really run encrypted stuff from the editor unless it's an include. If it's safe to assume encryption is all or nothing, then I think @Craige_Hales is probably the best option.
If you need to it to be module specific, that's harder as we don't run the expression as an include (because sometimes the file isn't saved so it wouldn't be an include).
Depends on how you're setting up scopes. Maybe you could just hardcode the name of the file instead of using the includefilelist()?
For example. I created a script `test.jsl`
Names Default to here(1);
isEncrypted = Left(LoadTextFile("test.jsl"),9)== "//-e6.0.2"; // I had to edit this because that's what my encryption gives.
if(isEncrypted,
print("This script is encrypted"),
print("This script is not encrypted")
);
If I encrypt that script then include it from another script in vscode I can get.
This definitely isn't perfect and assumes A LOT about your structure. But maybe that's helpful?
Either way I've made an issue in the GitLab Repo
@ben_ph maybe you can think of a better workaround?