Skip to content

Locate VS Code CLI dynamically #148

@philipnickel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions