Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have OSX support unified launch script #2859

Closed
4 tasks done
Tyriar opened this issue Feb 9, 2016 · 3 comments
Closed
4 tasks done

Have OSX support unified launch script #2859

Tyriar opened this issue Feb 9, 2016 · 3 comments
Assignees
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Feb 9, 2016

The script added in #2650 needs its OSX support finished:

  • Determine where launcher.js should go on OSX
  • Ensure code.sh points to correct paths
  • Add action to install/uninstall global shortcut
  • Provide upgrade mechanism

Once this is done and code.sh is put into /usr/bin on installation, there will no longer be a need to add function code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $*; } to dotfiles as suggested by the docs

@joaomoreno
Copy link
Member

👍

@joaomoreno
Copy link
Member

Commit be4a1ef adds an executable code which allows me to do this:

→ /Applications/Visual\ Studio\ Code\ Alpha.app/Contents/Resources/app/bin/code --help
Visual Studio Code v0.10.9-alpha

Usage: code [arguments] [paths...]

Options:
    -h, --help     Print usage.
    --locale       Use a specific locale.
    -n             Force a new instance of Code.
    -v, --version  Print version.

Pretty cool. Now we just need a way to place a symlink to this executable somewhere in the PATH.

@joaomoreno
Copy link
Member

Fixed in d2a151f

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants