Skip to content

Locate VS Code CLI dynamically #148

Description

@philipnickel

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions