From 1b8b15825b172cdeefba7105515d8fbd6a2891c5 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Fri, 22 Nov 2019 14:46:33 -0800 Subject: [PATCH] Use inspect-port=0 for automatic extension host profiling, #85328 --- .../services/extensions/electron-browser/extensionHost.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/services/extensions/electron-browser/extensionHost.ts b/src/vs/workbench/services/extensions/electron-browser/extensionHost.ts index 87de5701125f5..ce56c37a418d3 100644 --- a/src/vs/workbench/services/extensions/electron-browser/extensionHost.ts +++ b/src/vs/workbench/services/extensions/electron-browser/extensionHost.ts @@ -158,6 +158,8 @@ export class ExtensionHostProcessWorker implements IExtensionHostStarter { '--nolazy', (this._isExtensionDevDebugBrk ? '--inspect-brk=' : '--inspect=') + portNumber ]; + } else { + opts.execArgv = ['--inspect-port=0']; } const crashReporterOptions = undefined; // TODO@electron pass this in as options to the extension host after verifying this actually works