Skip to content

fix: rename product executable on macOS - #291948

Merged
Robo (deepak1556) merged 6 commits into
mainfrom
robo/rename_executable_darwin
Feb 3, 2026
Merged

fix: rename product executable on macOS#291948
Robo (deepak1556) merged 6 commits into
mainfrom
robo/rename_executable_darwin

Conversation

@deepak1556

@deepak1556 Robo (deepak1556) commented Jan 30, 2026

Copy link
Copy Markdown
Collaborator

@deepak1556 Robo (deepak1556) added this to the February 2026 milestone Jan 30, 2026
@deepak1556 Robo (deepak1556) self-assigned this Jan 30, 2026
Copilot AI review requested due to automatic review settings January 30, 2026 18:22
@deepak1556 Robo (deepak1556) changed the title fix: rename product executable name on macOS fix: rename product executable on macOS Jan 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR renames the macOS executable from "Electron" to the product's short name (e.g., "Code", "Code - OSS") to better reflect the actual product identity. This change affects various test files, scripts, and build configurations.

Changes:

  • Updated comments in test files to reflect the new executable name
  • Modified path resolution logic to use product.nameShort instead of hardcoded "Electron"
  • Added backward compatibility for builds version 1.109 and earlier
  • Updated shell scripts to dynamically determine the executable name from product.json
  • Updated build configuration and gulpfile to set the darwin executable name
  • Updated VS Code debug launch configurations to use the correct executable path

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/smoke/src/main.ts Updated comment to reflect new executable name "Code" instead of "Electron"
test/mcp/src/application.ts Updated comment to reflect new executable name "Code" instead of "Electron"
test/automation/src/electron.ts Added version parsing logic and backward compatibility check; updated path resolution to use product.nameShort
scripts/test.sh Modified to read executable name from product.json nameShort property
scripts/node-electron.sh Modified to read executable name from product.json nameShort property
scripts/code.sh Modified to read executable name from product.json nameShort property
scripts/code-cli.sh Modified to read executable name from product.json nameShort property
resources/darwin/bin/code.sh Changed hardcoded "Electron" to @char (@name)@@ placeholder for replacement during build
build/lib/electron.ts Added darwinExecutable configuration property using product.nameShort
build/gulpfile.vscode.ts Added placeholder replacement for @char (@name)@@ with product.nameShort
.vscode/launch.json Updated debug configurations to use "Code - OSS" instead of "Electron"

Comment thread test/automation/src/electron.ts Outdated
Comment thread test/automation/src/electron.ts
Comment thread test/automation/src/electron.ts
Robo (deepak1556) and others added 3 commits January 31, 2026 03:47
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@deepak1556
Robo (deepak1556) marked this pull request as ready for review February 3, 2026 20:42
@deepak1556
Robo (deepak1556) enabled auto-merge (squash) February 3, 2026 20:42
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Ladislau Szomoru (@lszomoru)

Matched files:

  • build/azure-pipelines/darwin/product-build-darwin-universal.yml
  • build/azure-pipelines/darwin/steps/product-build-darwin-compile.yml
  • build/azure-pipelines/darwin/steps/product-build-darwin-test.yml

Benjamin Pasero (@bpasero)

Matched files:

  • src/vs/code/node/cli.ts

@deepak1556
Robo (deepak1556) merged commit d0e5166 into main Feb 3, 2026
34 checks passed
@deepak1556
Robo (deepak1556) deleted the robo/rename_executable_darwin branch February 3, 2026 22:50
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Mar 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants