Skip to content

VS Code prepend PATH environment variable with its install directory, when started from start menu icon. #304797

@PetSerAl

Description

@PetSerAl

Does this issue occur when all extensions are disabled?: Yes

Starting from 1.110.0 VS Code prepend PATH environment variable with its install directory, when started from start menu icon or from Code.exe. There are no issue with PATH environment variable, when VS Code started from bin\code.cmd. This is problematic as plain code will now resolve into Code.exe instead of code.cmd, when used in internal terminal, so things like code --install-extension, code --diff or code --merge will no longer work, as Code.exe did not process this command line parameters.

I tested it on clean Windows install (VM with snapshot just after install) with restore to clean state before each version tested.

I tested it on 1.113.0-insider it was not affected, but now 1.113.0 released and bug still here, so I presume it just does not affect Insider builds.

  • VS Code Version: 1.110.0, 1.111.0, 1.112.0, 1.113.0
  • OS Version: 10.0.26200.8037

Steps to Reproduce:

  1. Clean install of VS Code.
  2. Start VS Code from start menu icon.

Screenshot from 1.109.0:
Image
Screenshot from 1.110.0
Image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginstall-updateVS Code installation and upgrade system issuesverifiedVerification succeededwindowsVS Code on Windows issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions