Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Rieken <johannes.rieken@gmail.com>2022-02-04 14:09:53 +0300
committerJohannes Rieken <johannes.rieken@gmail.com>2022-02-04 14:10:29 +0300
commitff0c11fbb2fbc29d776a6511c273ee82eabd3642 (patch)
tree308f0faa7a61d480f62c8137353abeb1dd360109 /src/vs/workbench/contrib/extensions/electron-sandbox
parent3953efa2d381456a60a3c758d38f9fba1d1819c7 (diff)
fix issue which causes extension host to be profiled forever
Diffstat (limited to 'src/vs/workbench/contrib/extensions/electron-sandbox')
-rw-r--r--src/vs/workbench/contrib/extensions/electron-sandbox/extensionsAutoProfiler.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsAutoProfiler.ts b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsAutoProfiler.ts
index 72b8414d32a..0dd272a25ce 100644
--- a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsAutoProfiler.ts
+++ b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsAutoProfiler.ts
@@ -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