Skip to content

Commit

Permalink
fix issue which causes extension host to be profiled forever
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Feb 4, 2022
1 parent 3953efa commit ff0c11f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff0c11f

Please sign in to comment.