Repository navigation
v1.8 (VS Code extension 0.4.0)
VS Code extension 0.4.0: validate as you type
The extension now validates the editor's current text, unsaved changes included, once typing pauses. Each keystroke restarts the wait, and an outdated run still in progress is cancelled, so fast typing produces a single validation.
| Setting | Default | What it does |
|---|---|---|
schematron.changeDelayMs |
500 |
How long typing must pause before validating, in ms (minimum 100). Changes apply immediately. |
schematron.validateOnChange |
true |
Turns validation while typing on or off. Validation on open and on save still works either way. |
- Your files stay untouched. Unsaved text is written to a private temporary folder, never next to your file, and deleted after each run.
- Half-typed tags show a "not well-formed" error on their line until the XML is complete again. jing is skipped in that state, so the same error isn't reported twice.
- Validate Current File now includes unsaved changes.
- Limitation: unsaved text is always validated as UTF-8.
validate.py 1.8
--as PATHvalidates a single document as if it were located at PATH. Relativexml-modelhrefs resolve from there, and the report uses that file name.- Schema auto-detection reads the
<?xml-model?>instructions tolerantly. A document that isn't (yet) well-formed now gets a normal "not well-formed" error with its line, instead of failing with an environment error.
Install the extension
code --install-extension validate-schematron-0.4.0.vsix