handling-extension-errors

Community

Graceful error handling for VS extensions.

Authormadskristensen
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Visual Studio extensions are prone to crashes if errors are not properly handled. This guidance provides patterns to consistently log, report, and recover from exceptions across both in-process (VSSDK) and out-of-process (VisualStudio.Extensibility) models, including the Community Toolkit.

Core Features & Use Cases

  • Centralized logging to Output Window, Activity Log, and TraceSource for diagnostic visibility.
  • Severity-aware user notifications that balance disruption and information (status, info bars, or message boxes).
  • Clear guidance for handling OperationCanceledException, async flows, and cross-model error reporting in production extensions.

Quick Start

Implement a robust error handling pattern in a VS extension that logs exceptions, notifies users appropriately, and recovers gracefully.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: handling-extension-errors
Download link: https://github.com/madskristensen/vs-agent-plugins/archive/main.zip#handling-extension-errors

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.