CODE_CLI is hardcoded to /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code. If VS Code is installed in ~/Applications, under a different name, or managed by Homebrew cask, this breaks. Try command -v code first and fall back to the hardcoded path, with a clear error if neither exists.
CODE_CLIis hardcoded to/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code. If VS Code is installed in~/Applications, under a different name, or managed by Homebrew cask, this breaks. Trycommand -v codefirst and fall back to the hardcoded path, with a clear error if neither exists.