From e50913cba914e153fd4adf0a6ec5b4a05a4a1663 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Tue, 3 Feb 2026 20:37:05 +0900 Subject: [PATCH] chore: adjust VSCode macOS paths for renamed executable --- macOS/Apps/Visual Studio Code/installVSCode.sh | 3 +++ .../onboarding_scripts/scripts/04-installVSCode.zsh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/macOS/Apps/Visual Studio Code/installVSCode.sh b/macOS/Apps/Visual Studio Code/installVSCode.sh index b6280133..6b4d255a 100755 --- a/macOS/Apps/Visual Studio Code/installVSCode.sh +++ b/macOS/Apps/Visual Studio Code/installVSCode.sh @@ -29,6 +29,9 @@ appname="Visual Studio Code" app="Visual Studio Code.app" # The actual name of our App once installed logandmetadir="/Library/Logs/Microsoft/IntuneScripts/installVSCode" # The location of our logs and last updated data processpath="/Applications/Visual Studio Code.app/Contents/MacOS/Electron" # The process name of the App we are installing +if [[ ! -f "$processpath" ]]; then + processpath="/Applications/Visual Studio Code.app/Contents/MacOS/Code" # New executable name per https://github.com/microsoft/vscode/pull/291948 +fi terminateprocess="false" # Do we want to terminate the running process? If false we'll wait until its not running autoUpdate="true" # If true, application updates itself and we should not attempt to update diff --git a/macOS/Config/Swift Dialog/onboarding_scripts/scripts/04-installVSCode.zsh b/macOS/Config/Swift Dialog/onboarding_scripts/scripts/04-installVSCode.zsh index 9056e794..75b7c631 100755 --- a/macOS/Config/Swift Dialog/onboarding_scripts/scripts/04-installVSCode.zsh +++ b/macOS/Config/Swift Dialog/onboarding_scripts/scripts/04-installVSCode.zsh @@ -29,6 +29,9 @@ appname="Microsoft VS Code" app="Visual Studio Code.app" # The actual name of our App once installed logandmetadir="/Library/Application Support/Microsoft/IntuneScripts/installVSCode" # The location of our logs and last updated data processpath="/Applications/Visual Studio Code.app/Contents/MacOS/Electron" # The process name of the App we are installing +if [[ ! -f "$processpath" ]]; then + processpath="/Applications/Visual Studio Code.app/Contents/MacOS/Code" # New executable name per https://github.com/microsoft/vscode/pull/291948 +fi terminateprocess="false" # Do we want to terminate the running process? If false we'll wait until its not running autoUpdate="true" # If true, application updates itself and we should not attempt to update