Skip to content

Commit

Permalink
Merge pull request #139242 from microsoft/roblou/exposeGc
Browse files Browse the repository at this point in the history
Spawn EH process with --expose-gc when in extension tests.
  • Loading branch information
alexdima committed Dec 16, 2021
2 parents 81df452 + 724181f commit 28bf810
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ export class LocalProcessExtensionHost implements IExtensionHost {
opts.execArgv = ['--inspect-port=0'];
}

if (this._environmentService.extensionTestsLocationURI) {
opts.execArgv.unshift('--expose-gc');
}

if (this._environmentService.args['prof-v8-extensions']) {
opts.execArgv.unshift('--prof');
}
Expand Down

0 comments on commit 28bf810

Please sign in to comment.