什麼是 memory-leak-audit?
審核記憶體洩漏和一次性問題的程式碼。在查看事件偵聽器、DOM 處理程序、生命週期回呼或修復洩漏報告時使用。涵蓋 addDisposableListener、Event.once、MutableDisposable、DisposableStore 和 onWillDispose 模式。 來源:microsoft/vscode。
審核記憶體洩漏和一次性問題的程式碼。在查看事件偵聽器、DOM 處理程序、生命週期回呼或修復洩漏報告時使用。涵蓋 addDisposableListener、Event.once、MutableDisposable、DisposableStore 和 onWillDispose 模式。
透過命令列快速安裝 memory-leak-audit AI 技能到你的開發環境
來源:microsoft/vscode。
The #1 bug category in VS Code. This skill encodes the patterns that prevent and fix leaks.
Work through each check in order. A single missed pattern can cause thousands of leaked objects.
Rule: Never use raw .onload, .onclick, or addEventListener() directly. Always use addDisposableListener().
審核記憶體洩漏和一次性問題的程式碼。在查看事件偵聽器、DOM 處理程序、生命週期回呼或修復洩漏報告時使用。涵蓋 addDisposableListener、Event.once、MutableDisposable、DisposableStore 和 onWillDispose 模式。 來源:microsoft/vscode。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/microsoft/vscode --skill memory-leak-audit審核記憶體洩漏和一次性問題的程式碼。在查看事件偵聽器、DOM 處理程序、生命週期回呼或修復洩漏報告時使用。涵蓋 addDisposableListener、Event.once、MutableDisposable、DisposableStore 和 onWillDispose 模式。 來源:microsoft/vscode。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/microsoft/vscode --skill memory-leak-audit 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/microsoft/vscode