fix issue which causes extension host to be profiled forever

This commit is contained in:
Johannes Rieken
2022-02-04 12:09:53 +01:00
parent 3953efa2d3
commit ff0c11fbb2
@@ -76,7 +76,13 @@ export class ExtensionsAutoProfiler extends Disposable implements IWorkbenchCont
}
// wait 5 seconds or until responsive again
await timeout(5e3, cts.token);
try {
await timeout(5e3, cts.token);
} catch {
// can throw cancellation error. that is
// OK, we stop profiling and analyse the
// profile anyways
}
try {
// stop profiling and analyse results