We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c197d8 + 0a01b6c commit 7d35f81Copy full SHA for 7d35f81
src/vs/base/common/lifecycle.ts
@@ -441,7 +441,7 @@ export class DisposableStore implements IDisposable {
441
* Add a new {@link IDisposable disposable} to the collection.
442
*/
443
public add<T extends IDisposable>(o: T): T {
444
- if (!o) {
+ if (!o || o === Disposable.None) {
445
return o;
446
}
447
if ((o as unknown as DisposableStore) === this) {
0 commit comments