Weigl WEM | Script
Edit Weigl show-control files in VS Code. Version 2.0 adds command completion,
parameter hints, hover help, and diagnostics for control.ini.
Command suggestions
Open control.ini and type ! to see triggers. After the trigger, type a second
! to see actions and variable conditions. Pick a suggestion to insert the
command with editable example values.

Command suggestions and parameter hints are on by default. Set
wemscript.useSnippets to false in VS Code Settings to turn them off.
Command reference and diagnostics
Hover over a command to see its syntax and an example. VS Code reports issues
such as missing triggers, missing # terminators, invalid IP addresses and
ports, and timer values outside their allowed range.


Saving control.ini moves trailing comments above their commands.

Device targets
Add a device alias near the top of control.ini to get a completion such as
nsdVIDEO. After editing the alias, the next completion inserts the new
address. To update existing commands, place the cursor on an address and run
WemScript: Change Target Under Cursor. Pick the alias, then choose
Current target or All matching targets.
// HARDWARE: HX
// DEVICE VIDEO@192.0.2.20:5236
