From 1adfc27f04414136290982b040d1397b4abcb13d Mon Sep 17 00:00:00 2001 From: Eva H <63033505+hoyyeva@users.noreply.github.com> Date: Thu, 26 Mar 2026 15:06:28 -0700 Subject: [PATCH] launch/vscode: prefer known vs code paths over `code` on PATH (#15073) --- cmd/launch/vscode.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/launch/vscode.go b/cmd/launch/vscode.go index e68da2bd8..5f81d53f6 100644 --- a/cmd/launch/vscode.go +++ b/cmd/launch/vscode.go @@ -25,11 +25,8 @@ type VSCode struct{} func (v *VSCode) String() string { return "Visual Studio Code" } // findBinary returns the path/command to launch VS Code, or "" if not found. -// It checks for the "code" CLI on PATH first, then falls back to platform-specific locations. +// It checks platform-specific locations only. func (v *VSCode) findBinary() string { - if _, err := exec.LookPath("code"); err == nil { - return "code" - } var candidates []string switch runtime.GOOS { case "darwin":