本文へスキップ
Kitbay
スキル

memory-leak-audit

MIT2026年11月11日 更新195,341GitHubスター

A contributor skill in the VS Code repository with a checklist for finding and preventing memory leaks from event listeners and other disposables, which it calls the most common bug category in VS Code.

スキルの内容

A contributor skill in the VS Code repository with a checklist for finding and preventing memory leaks from event listeners and other disposables, which it calls the most common bug category in VS Code. It asks for VS Code's disposable DOM listener helper instead of raw handlers, one-time events for lifecycle signals, a mutable holder instead of registering again in methods that run often, disposing stores tied to a model when it goes away, per-item stores in pooled list items, and a leak check in every test suite. Each rule cites the pull request that fixed such a leak. A chat leak script measures heap growth per message.

できること

  • Check code for undisposed listeners
  • Apply VS Code's disposable patterns
  • Add leak checks to test suites
  • Measure heap growth in chat sessions