memory-leak-audit
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
概要
- 公開元
- Microsoft
- ツール
- デバッグ
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/microsoft/vscode · 根拠となる項目:スクリプトを含む2026年11月14日
- GitHubリポジトリgithub.com/microsoft/vscode · 根拠となる項目:公開元, 活動状況, ライセンス2026年11月11日
- リポジトリ内のフォルダ(memory-leak-audit)github.com/microsoft/vscode · 根拠となる項目:スクリプトを含む2026年11月14日