Pular para o conteúdo
Kitbay
Skill

memory-leak-audit

MITAtualizado em 11 de nov. de 2026195.341Estrelas no GitHub

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.

O que a skill ensina

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.

O que faz

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