]> git.lizzy.rs Git - rust.git/commit
Merge #993
authorbors[bot] <bors[bot]@users.noreply.github.com>
Mon, 18 Mar 2019 19:26:45 +0000 (19:26 +0000)
committerbors[bot] <bors[bot]@users.noreply.github.com>
Mon, 18 Mar 2019 19:26:45 +0000 (19:26 +0000)
commit7fc35d391c76aed4defc8600e75215845afa66b7
treeccae2a9b37df57da996157d54113d2357edb8da3
parent132b207a228d0c588b08bbfffd53002b46521a1e
parent69edc10f3529add3de65b62a7304d3fc258c7a62
Merge #993

993: Fix installing vscode extension on MacOS r=matklad a=funkill

VSCode often installed in MacOS as `Visual Studio Code.app` package and `code` binary located at `Contents/Resources/app/bin` in package. This path not exists in `$PATH` variable and we can't run `code`.

In previous version of `do_run` function all before space was command and all after - arguments. If path or command has spaces, extracting command breaks. To fix this i extracted command to separated argument of function.

All packages can be placed in system app dir (`/Applications`) or user app dir (`~/Applications`). I created helper function for find app in this directories.

Co-authored-by: funkill2 <funkill2@gmail.com>