How venomnbb/hdl-blockseal works
HDL BlockSeal is a local VS Code extension that completes HDL block syntax on Enter. The main workflow filters the document by language and settings, matches an opening line to a language-specific rule, checks for an existing closer, then edits the document with an indented cursor line and closing keyword. The source excerpt is partial, so the graph shows only supported runtime relationships; Verilog and SystemVerilog share the rule selection path.
Main entry points: extension.js Enter handler · package.json Enable settings
Components 11
Editor activation
- VS Code editor
- Enter handler
extension.js
Language matching
- Language detection
extension.js - Enable settings
package.json - Verilog / SV rules
extension.js - VHDL rules
extension.js - Duplicate check
extension.js
Document editing
- Indentation helpers
extension.js - HDL document
- Editor edit
extension.js
Other components
- HDL author
Connections 13
- HDL author → VS Code editor: presses Enter
- VS Code editor → Enter handler: dispatches change
- Enter handler → Language detection: identifies language
- Enter handler → Enable settings: reads settings
- Enter handler → Verilog / SV rules: selects rules
- Enter handler → VHDL rules: selects rules
- Enter handler → Duplicate check: checks closer
- Duplicate check → HDL document: scans lines
- Enter handler → Indentation helpers: gets indentation
- Enter handler → HDL document: reads trigger line
- Enter handler → Editor edit: requests edit
- Editor edit → HDL document: inserts lines
- VS Code editor → HDL document: provides change event