Update extension enabled tsconfig libs (#159631)

Matches what we set for `src/`
This commit is contained in:
Matt Bierner
2022-08-30 22:57:15 -07:00
committed by GitHub
parent 55046fccac
commit 01ea9c11ea
3 changed files with 6 additions and 37 deletions

View File

@@ -5,14 +5,6 @@
import * as vscode from 'vscode';
export class MultiDisposeError extends Error {
constructor(
public readonly errors: any[]
) {
super(`Encountered errors while disposing of store. Errors: [${errors.join(', ')}]`);
}
}
export function disposeAll(disposables: Iterable<vscode.Disposable>) {
const errors: any[] = [];
@@ -27,7 +19,7 @@ export function disposeAll(disposables: Iterable<vscode.Disposable>) {
if (errors.length === 1) {
throw errors[0];
} else if (errors.length > 1) {
throw new MultiDisposeError(errors);
throw new AggregateError(errors, 'Encountered errors while disposing of store');
}
}