Resource cleanup is the systematic release of resources when they are no longer needed. In a large editor, it prevents leaks by stopping file watchers, freeing memory, and tearing down connections when a tab closes. section 3.1
Closing an editor tab
Closing a tab is a concrete cleanup boundary: the editor stops watching its file, releases associated memory, and tears down connections. Cleanup belongs alongside the editor, file-system, and eventing abstractions that make those resources useful. section 3.1
Figure 3.2 The ten core abstractions in VS Code, distilled from 10,000 files. The arrows show a recommended learning path, starting with foundational code like Resource Cleanup and ending with visible UI like the Workbench Layout.

Places Resource Cleanup among ten core VS Code abstractions and marks it as foundational in the recommended path through the architecture. section 3.1
