A work in progress auto-completion Schema json file for Stormgate Triggers.
Made in order to increase QoL and simplify entry into the script editing to make triggers, by adding auto-suggest lines for the function_ids and some other elements used in triggers.
Requires Visual Studio Code (User)
The editor custom maps on your PC are located in the Documents/Stormgate. We're going to turn it into a VSCode workspace that can read Schemas placed in it. You can download the Schema file(s) and place them there (<>Code -> Download ZIP).
Open the Stormgate folder in VSC and turn it into a workspace as on the image.
This creates .vscode folder and the workspace file there. The folder now can be set up in a way that allows the Schema to work.
Now we need to find the setting that sets the Schema in the Workspace. After going to Preferences -> Settings , search "json.schemas".
You'll get the settings.json file, made in the .vscode folder. Edit the file like this to set up the Schema (because it's in the core of the workspace, it doesn't need a larger path. Also using web urls or local file urls without a workspace simply didn't work for me.)
And... we're done! The only thing you need to remember is to open a scheme in a tab before coding JSON triggers, otherwise they won't be suggested (I don't know why that's required, but it seems to be).
2025_12_23_00_18_53.mp4
Unfortunately it does sometimes bug out - it might be a code error, but it happens very inconsistenly (I suspect the size of the workspace impacts this, so you can do everything the same, but only for your one map not whole folder). In the cases when the file doesn't recommend while typing, try placing typer selection after a function with "," and press Ctrl+Space to bring up the options; you'll probably be able to type and find one.
TODO: add descriptions to the suggested functions, similarly to the UI version. Try to get it to work consistently (the bugs of this type are pretty common it seems).