VS Code Extension Installation
The SentriFlow VS Code extension provides real-time validation of network configuration files directly in your editor. Get instant feedback on security issues, misconfigurations, and compliance violations as you work.
Prerequisites
- VS Code version 1.85.0 or later
- Node.js 18+ (for the SentriFlow language server)
Installation Methods
Initial Configuration
After installation, configure the extension for your environment:
1. File Associations
The extension automatically validates files with these extensions:
.conf- Configuration files.cfg- Configuration files.txt- Text files (when in a config directory)
To add custom file associations, update your VS Code settings:
{
"files.associations": {
"*.config": "sentriflow",
"*.network": "sentriflow"
}
}2. Vendor Selection
Set the default vendor for automatic detection:
{
"sentriflow.defaultVendor": "cisco-ios"
}Or use file-based detection with header comments:
! sentriflow: vendor=cisco-ios
hostname Router1
...3. Severity Threshold
Control which issues appear in the Problems panel:
{
"sentriflow.minimumSeverity": "warning"
}Options: "error", "warning", "info"
Workspace Configuration
For team consistency, add settings to your workspace:
{
"sentriflow.defaultVendor": "cisco-ios",
"sentriflow.minimumSeverity": "warning",
"sentriflow.customRules": [
"${workspaceFolder}/rules/org-security.json"
],
"sentriflow.excludePatterns": [
"**/test-configs/**",
"**/examples/**"
]
}Verify Installation
Create Test File
Create a file named test.conf with this content:
hostname TestRouter
!
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
!
line vty 0 4
transport input telnetCheck Problems Panel
Open the Problems panel (Ctrl+Shift+M / Cmd+Shift+M). You should see issues flagged:
- Warning: Telnet enabled on VTY lines
- Warning: Interface missing description
View Diagnostics
Hover over underlined configuration lines to see issue details and remediation suggestions.
Troubleshooting
Extension Not Loading
- Check VS Code version:
Help > About - Verify extension is enabled:
Extensions > SentriFlow > Enable - Check Output panel:
View > Outputthen select “SentriFlow”
No Diagnostics Appearing
- Verify file association: Status bar should show “SentriFlow”
- Check minimum severity setting
- Try setting vendor explicitly in file header
Language Server Errors
If you see “Language server failed to start”, check that Node.js 18+ is installed and in your PATH.
# Check Node.js version
node --version # Should be 18.0.0 or higherHigh Memory Usage
For large configuration files, enable incremental validation:
{
"sentriflow.incrementalValidation": true,
"sentriflow.maxFileSize": 1000000
}Updating the Extension
The extension auto-updates by default. To update manually:
- Open Extensions view (
Ctrl+Shift+X) - Click the gear icon on SentriFlow
- Select “Check for Extension Updates”
Uninstalling
- Open Extensions view
- Find SentriFlow
- Click Uninstall
- Reload VS Code
Next Steps
- Settings Reference - All configuration options
- Features Guide - UI features walkthrough
- Quick Start - First validation tutorial