listening-text-view-events

Community

React to editor lifecycle events in VS extensions

Authormadskristensen
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Visual Studio extensions often need to initialize per-editor state and respond to editor lifecycle events such as open, close, and content changes. This skill guides you through implementing text view listeners across the three extensibility models (VisualStudio.Extensibility, VSIX Community Toolkit, and VSSDK), enabling reliable per-editor behavior.

Core Features & Use Cases

  • Listen for editor open/close events to initialize or clean up per-document state.
  • React to text changes within an editor to trigger live analysis or decorations.
  • Support multiple models (out-of-process, in-process Toolkit, and MEF-based VSSDK) with proper cleanup and filtering.

Quick Start

Register a text view listener suitable for your extension model and start handling editor open/close and text-change events.

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: listening-text-view-events
Download link: https://github.com/madskristensen/vs-agent-plugins/archive/main.zip#listening-text-view-events

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.