-
Notifications
You must be signed in to change notification settings - Fork 348
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded
Milestone
Description
Describe the bug
When defining NODE_OPTIONS env variable at OS level it is being overriden when starting debug session.
To Reproduce
Steps to reproduce the behavior:
- Clone this repo
- Add to
Extensionlaunch config:
"env": {
"NODE_OPTIONS": "--use-openssl-ca"
}
- Run extension launch config
- In the extension development host create index.js file that contains
console.log(process.env.NODE_OPTIONS) - Create the following launch config:
{
"name": "Launch Program",
"program": "${workspaceFolder}/index.js",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
- Run it with Debug › JavaScript: Use Preview enabled -
--require "c:/Users/i318734/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js"is displayed. - Run it with Debug › JavaScript: Use Preview disabled -
--use-openssl-cais displayed.
I would expect that NODE_OPTIONS OS value will be concatenated to the new value instead of being replaced.
My use case is to load certificates from the OS certificate store by default for any node process instead of using the bundled NodeJS certificate store.
Log File
VS Code Version: 1.47.3
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded