mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 10:16:01 +01:00
1d45633795
Adds `DisposableMap` to help manage the lifecycle of maps of disposable values. This is useful for a few reasons: - `DisposableMap` is itself disposable, so you can use it with `_register` or add it to a `DisposableStore` - The implementation of `set` on `DisposableMap` prevents leaking values on override - The `delete` implementation also makes sure it disposes of the deleted values