This is a fork of cwtools/cwtools-vscode. The original extension wrapped an F# language server from cwtools/cwtools; this fork has moved to a Rust-based server binary (cwtools-rs) and ships that.
Disclaimer
This extension is still in preview, it may not work, it may stop working at any time.
Make backups of your mod files.
Supported games
Stellaris
Hearts of Iron IV
Europa Universalis IV
Imperator: Rome - outdated, help needed
Crusader Kings II - partial
Crusader Kings III - in progress, help needed
Victoria 3 - in progress, help needed
Features
Immediate highlighting of syntax errors
Autocomplete while you type, providing descriptions when available
Tooltips on hover showing:
Related localisation
Documentation for that element
Scope context at that position
A wide range of validators for common, interface, and events, checking
That required localisation keys are defined
Existence of effects/triggers/modifiers
Scope context for used effects/triggers/modifiers
Usage of scripted effects/triggers
Correct entries for weights/AI_chance/etc
That event_targets are saved before they're used
That referenced sprites and graphics files exist
and a number of other specific validators
"Code actions" to generate .yml for missing localisation
Usage
Install this extension
Open your mod folder directly, which should be within a folder containing the game name: