Enable starting extension host with --expose-gc #139139
Labels
extension-host
Extension host issues
feature-request
Request for new features or functionality
insiders-released
Patch has been released in VS Code Insiders
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
The Jupyter extension runs memory usage tests, but they don't provide useful results unless they can force a GC. Starting a node process with
--expose-gc
enables the apiglobal.gc()
to do this.Can we enable spawning the extension host with this flag? Or is there some creative backdoor way that an extension can do this already?
vscode/src/vs/workbench/services/extensions/electron-browser/localProcessExtensionHost.ts
Line 250 in 648e355
We could always set it when running extension tests. Or, add a flag/environment variable that vscode can be started with to enable this.
NODE_OPTIONS
apparently can't be used for--expose-gc
cc
@rchiodo
The text was updated successfully, but these errors were encountered: