Skip to content

VSCode 1.101 is injecting numerical environment variables into my remote linux Terminal environments, with the characters for "JSON.stringify(process.env)" #251650

Open
@egrosspietsch-fds

Description

@egrosspietsch-fds

Type: Bug

  1. Connect to a remote linux host
  2. Open a folder
  3. Open a new Terminal
  4. Run env
  5. A bunch of environment variables for numbers (e.g. "20=o", "21=c") have been injected into my environment. If I connect to the host in any other way they don't appear.

If I downgrade to VSCode 1.100.3, they don't appear.

Here is a snip from env | sort. You can see that if you look in numerical order, the characters represent the string + JSON.stringify(process.env) + :

Image

VS Code version: Code 1.101.0 (dfaf441, 2025-06-11T15:00:50.123Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 4.18.0-553.50.1.el8_10.x86_64
Remote OS version: Linux x64 4.18.0-553.50.1.el8_10.x86_64

Extensions (3)
Extension Author (truncated) Version
remote-ssh ms- 0.120.0
remote-ssh-edit ms- 0.87.0
remote-explorer ms- 0.5.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions