From 958cef97e3729fff7a2c5504ab1cf38c91e9407d Mon Sep 17 00:00:00 2001 From: j4rviscmd Date: Sat, 23 May 2026 00:52:45 +0900 Subject: [PATCH] fix: correct path derivation in macOS update restart script The applyDmgUpdateOnQuit() method used path.dirname() twice on currentAppPath, which resolved to '/' instead of the app's parent directory (e.g. '/Applications'). This caused the update shell script to target '/Coderm.app' rather than '/Applications/Coderm.app', resulting in a failed restart after update installation. --- .../platform/update/electron-main/codermUpdateService.darwin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/platform/update/electron-main/codermUpdateService.darwin.ts b/src/vs/platform/update/electron-main/codermUpdateService.darwin.ts index 19d5d70409c..514cde1e523 100644 --- a/src/vs/platform/update/electron-main/codermUpdateService.darwin.ts +++ b/src/vs/platform/update/electron-main/codermUpdateService.darwin.ts @@ -389,7 +389,7 @@ export class CodermDarwinUpdateService extends AbstractUpdateService implements this.pendingUpdate = undefined; // prevent double-spawn const currentAppPath = electron.app.getAppPath().split('.app')[0] + '.app'; - const parentDir = path.dirname(path.dirname(currentAppPath)); + const parentDir = path.dirname(currentAppPath); const targetAppPath = path.join(parentDir, appName); const currentPid = process.pid;