Skip to content

Commit 99a7427

Browse files
committed
Log errors and disposer
1 parent 1130ceb commit 99a7427

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/common/src/util/Disposer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ export class Disposer implements Disposable {
2222
try {
2323
dispose();
2424
} catch (e) {
25-
// do nothing; some of the VSCode disposables misbehave, and we don't
26-
// want that to prevent us from disposing the rest of the disposables
25+
// just log, but don't throw; some of the VSCode disposables misbehave,
26+
// and we don't want that to prevent us from disposing the rest of the
27+
// disposables
28+
console.error(e);
2729
}
2830
});
2931
}

0 commit comments

Comments
 (0)