Files
vscode/src/vs/workbench
Matt Bierner 3d5ce6be5e Introduce DisposableStore
Fixes #74242

Our current usage of dispoable arrays can leak disposables (see #74242 for details). This change introduces a new class called `DisposableStore` that can be used mostly as a drop in replacement for an array of disposables but will not leak disposbles if it is disposed

`DisposableStore` was extracted from the existing `Dispoable` class, which already implements this pattern. However `Disposable` is intended to be used as a base class while `DispoableStore` is a value class.

In addition, this change hides the `toDispose` / `_toDipose` members of `Disposable` as direct write access to the disposable array also allows for leaks (and breaks encapsulation)
2019-05-23 19:25:16 -07:00
..
2019-05-23 19:25:16 -07:00
2019-05-23 19:25:16 -07:00
2019-05-23 11:49:27 +02:00
2019-05-23 19:25:16 -07:00
2019-04-16 14:25:43 +02:00
2019-05-22 11:50:49 +02:00