Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Baseline Check ToolNew to Visual Studio Code? Get it now.
Baseline Check Tool

Baseline Check Tool

Rasike A

|
5 installs
| (0) | Free
Comprehensive web compatibility analysis and optimization tool for VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Baseline Check Tool - VS Code Extension

A comprehensive VS Code extension for web compatibility analysis and optimization. This extension integrates the Baseline Check Tool directly into your VS Code workflow, providing real-time analysis, automatic fixes, and detailed reporting.

✨ What's New in v2.4.0

🎉 Zero Setup Required!

  • Self-contained extension - baseline-check-tool now bundled
  • No npm install needed - Works immediately after installation
  • Smart tool detection - Automatically finds bundled, project, or global installation
  • Better error messages - Helpful guidance if issues occur

Interactive Dashboards

  • 7 specialized dashboards with beautiful UI and navigation
  • Automatic hub generation - Main dashboard created automatically
  • Clickable file:// links in Output panel for instant dashboard access
  • Action buttons in notifications ("View Dashboard" / "Show Output")
  • Navigation bar on all dashboards for seamless switching
  • Dashboard Hub as central access point for all analyses

Enhanced Developer Experience

  • Color-coded severity (Critical, High, Medium, Low) in all dashboards
  • Statistics cards showing issue counts at a glance
  • Detailed issue lists with file locations and fix suggestions
  • MDN documentation links for browser features
  • Responsive design that works on all screen sizes
  • Debug logging shows tool detection process

Better Workflow

  • Install extension → Use immediately (no setup!)
  • Run analysis → Get notification → Click button → View results instantly
  • All dashboard links accessible from Output panel
  • Seamless navigation between different analysis types
  • Return to hub anytime with "Home" link

Features

🔍 Comprehensive Analysis

  • Baseline Compatibility - Check web features against baseline browser support
  • Performance Analysis - Detect and fix performance issues automatically
  • Security Analysis - Identify security vulnerabilities and provide fixes
  • Accessibility Analysis - Ensure WCAG compliance and accessibility best practices
  • SEO Analysis - Optimize for search engines and improve discoverability
  • Bundle Analysis - Analyze and optimize JavaScript bundles

🚀 Real-time Monitoring

  • File Watching - Monitor file changes and run analysis automatically
  • Live Diagnostics - See issues directly in the editor with inline markers
  • Status Bar Integration - Quick access to analysis results and commands
  • Output Panel - Detailed analysis logs and recommendations

🛠️ Developer Experience

  • Code Snippets - Pre-built snippets for common patterns with baseline checks
  • Command Palette - Easy access to all analysis commands
  • Context Menus - Right-click integration for files and folders
  • Interactive Dashboards - Beautiful HTML dashboards with charts and navigation
  • Clickable Links - File:// URLs in Output panel for quick dashboard access
  • Action Buttons - Notification buttons to view dashboards or show output
  • Webview Dashboard - Interactive results panel with statistics and actions

⚡ Automatic Fixes

  • Auto-fix Issues - Automatically fix common compatibility and performance issues
  • Smart Recommendations - AI-powered suggestions for optimization
  • Code Generation - Generate fallback code and polyfills automatically

Installation

From VS Code Marketplace

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Baseline Check Tool"
  4. Click Install

🎉 No Additional Setup Required!

v2.4.0 is self-contained - the baseline-check-tool is bundled with the extension. Just install and start using immediately!

Optional: If you want to use the latest version of baseline-check-tool or use it outside VS Code:

npm install -g baseline-check-tool

The extension will automatically use whichever version is available (bundled, project, or global).

From Source

  1. Clone this repository
  2. Run npm install in the vscode-extension directory
  3. Run npm run compile to build the extension
  4. Press F5 to run the extension in a new Extension Development Host window

Usage

Quick Start

  1. Open a web project in VS Code
  2. Use Ctrl+Shift+P (or Cmd+Shift+P on Mac) to open the command palette
  3. Type "Baseline Check" to see all available commands
  4. Select "Scan for Baseline Compatibility" to start analysis
  5. Click "View Dashboard" button in the notification to see results
  6. Or click the file:// links in the Output panel to open specific dashboards

Commands

Core Analysis

  • baseline-check.scan - Scan current file or workspace for compatibility issues
  • baseline-check.analyze - Run comprehensive analysis across all categories
  • baseline-check.dashboard - Open interactive dashboard with results

Specialized Analysis

  • baseline-check.performance - Performance analysis and optimization
  • baseline-check.security - Security vulnerability detection
  • baseline-check.accessibility - Accessibility compliance checking
  • baseline-check.seo - SEO optimization analysis
  • baseline-check.bundle - JavaScript bundle analysis

Monitoring & Automation

  • baseline-check.monitor - Start real-time file monitoring
  • baseline-check.stopMonitor - Stop monitoring
  • baseline-check.fixIssues - Automatically fix detected issues
  • baseline-check.generateReport - Generate detailed analysis report

Code Snippets

The extension provides intelligent code snippets for common patterns:

JavaScript/TypeScript

  • baseline-check - Add baseline compatibility comment
  • feature-detect - Feature detection pattern
  • modern-js - Modern JavaScript feature detection
  • async-fallback - Async/await with Promise fallback
  • fetch-fallback - Fetch API with XMLHttpRequest fallback

HTML

  • baseline-check-html - HTML baseline compatibility comment
  • modern-html - Modern HTML5 elements
  • responsive-img - Responsive images with fallbacks
  • form-validation - Forms with progressive enhancement
  • semantic-html - Semantic HTML structure

CSS

  • baseline-check-css - CSS baseline compatibility comment
  • css-grid-fallback - CSS Grid with Flexbox fallback
  • css-custom-props - CSS Custom Properties with fallbacks
  • flexbox-layout - Flexbox layout patterns
  • responsive-css - Responsive design patterns

Configuration

The extension can be configured through VS Code settings:

{
  "baseline-check.enabled": true,
  "baseline-check.autoScan": false,
  "baseline-check.autoFix": false,
  "baseline-check.showNotifications": true,
  "baseline-check.includeNodeModules": false,
  "baseline-check.maxFileSize": 1048576,
  "baseline-check.performance.enabled": true,
  "baseline-check.security.enabled": true,
  "baseline-check.accessibility.enabled": true,
  "baseline-check.seo.enabled": true,
  "baseline-check.bundle.enabled": true,
  "baseline-check.monitoring.enabled": false,
  "baseline-check.monitoring.debounceMs": 1000
}

Interactive Dashboards

After running analysis, the extension generates beautiful interactive dashboards:

Dashboard Hub

The main dashboard hub provides access to all analysis types:

  • 🌐 Baseline Compatibility - Browser feature detection and compatibility
  • ⚡ Performance Analysis - Performance issues, bundle sizes, optimizations
  • 🔒 Security Analysis - XSS, CSRF, vulnerabilities, security headers
  • ♿ Accessibility Analysis - WCAG compliance, color contrast, ARIA
  • 🔍 SEO Analysis - Meta tags, Open Graph, structured data
  • 📦 Bundle Analysis - Code splitting, tree shaking, minification
  • 📄 Raw Reports - JSON data for custom processing

Dashboard Features

  • Navigation Bar - Seamless switching between dashboards
  • Statistics Cards - Visual summary of findings by severity
  • Issue Lists - Detailed issues with file locations and suggestions
  • Color Coding - Critical (red), High (orange), Medium (yellow), Low (green)
  • Clickable Links - Direct access from Output panel notifications
  • Action Buttons - "View Dashboard" and "Show Output" in notifications

Accessing Dashboards

  1. Via Notification - Click "View Dashboard" button after analysis
  2. Via Output Panel - Cmd/Ctrl+Click on file:// links
  3. Via Command - Run Baseline Check: View Dashboard
  4. Via Browser - Open dashboards/index.html in your workspace

Workspace Integration

The extension integrates seamlessly with VS Code workspaces:

  1. File Explorer Integration - Right-click on files/folders to run analysis
  2. Editor Integration - Right-click in editor for file-specific analysis
  3. Status Bar - Quick access to scan commands and results
  4. Problems Panel - Issues appear in the Problems panel with detailed information
  5. Output Panel - Detailed analysis logs, recommendations, and dashboard links

Real-time Monitoring

Enable real-time monitoring to automatically analyze files as you work:

  1. Run baseline-check.monitor command
  2. Files will be analyzed automatically when saved (if auto-scan is enabled)
  3. Results appear in the sidebar panel and Problems panel
  4. Use baseline-check.stopMonitor to stop monitoring

Screenshots

Dashboard Hub

The main dashboard provides easy access to all analysis types with beautiful cards and hover effects.

Performance Dashboard

View performance issues with color-coded severity, statistics cards, and actionable recommendations.

Navigation Flow

  1. Run analysis → Get notification with action buttons
  2. Click "View Dashboard" → Opens in browser
  3. Use navigation bar → Switch between dashboards
  4. Click "Home" → Return to hub

Output Panel Integration

File:// URLs in the Output panel are clickable (Cmd/Ctrl+Click) for quick dashboard access.

Requirements

  • VS Code 1.74.0 or higher
  • Node.js 16.x or higher (for running the analysis)
  • Supported file types: .js, .ts, .jsx, .tsx, .html, .css, .scss, .sass

✅ No External Dependencies

v2.4.0 bundles the baseline-check-tool directly with the extension. No additional installation required!

Extension Settings

Setting Description Default
baseline-check.enabled Enable/disable the extension true
baseline-check.autoScan Automatically scan files on save false
baseline-check.autoFix Automatically fix issues when possible false
baseline-check.showNotifications Show notifications for analysis results true
baseline-check.includeNodeModules Include node_modules in analysis false
baseline-check.maxFileSize Maximum file size to analyze (bytes) 1048576
baseline-check.performance.enabled Enable performance analysis true
baseline-check.security.enabled Enable security analysis true
baseline-check.accessibility.enabled Enable accessibility analysis true
baseline-check.seo.enabled Enable SEO analysis true
baseline-check.bundle.enabled Enable bundle analysis true
baseline-check.monitoring.enabled Enable real-time monitoring false
baseline-check.monitoring.debounceMs Debounce time for file changes (ms) 1000

Troubleshooting

Common Issues

  1. "Baseline Check Tool not found"

    • Ensure the Baseline Check Tool is installed: npm install -g baseline-check-tool
    • Check that it's in your PATH or install it locally in your project
  2. Analysis not running

    • Check the Output panel for error messages
    • Ensure you have a workspace folder open
    • Verify file permissions
  3. Performance issues

    • Disable real-time monitoring if not needed
    • Increase the debounce time for file changes
    • Exclude large directories like node_modules

Debug Mode

To enable debug logging:

  1. Open VS Code settings
  2. Search for "baseline-check"
  3. Enable "Show Notifications" to see detailed error messages
  4. Check the Output panel for detailed logs

Contributing

Contributions are welcome! Please see the main project repository for contribution guidelines.

License

This extension is part of the Baseline Check Tool project. See the main project for license information.

Support

  • Issues: Report issues on the main project repository
  • Documentation: See the main project documentation
  • Discussions: Join discussions in the project repository

Made with ❤️ for the web development community

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft