microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
scripts/atom
19lines · modeblame
514df4f4Patricio Beltran10 years ago | 1 | #!/bin/sh |
| 2 | | |
| 3 | # This script is called 'atom' to surpass the react-native | |
| 4 | # editor selection. It has nothing to do with the atom editor. | |
| 5 | # It can be safetly removed when the PR to support vscode in | |
| 6 | # react native gets accepted: | |
| 7 | # https://github.com/facebook/react-native/pull/7757 | |
| 8 | # | |
| 9 | # Usage: | |
| 10 | # ../path/atom filename:filenumber | |
| 11 | | |
| 12 | # Unix | |
| 13 | if [[ -z "$1" ]] ; then | |
| 14 | echo "Missing filename." | |
| 15 | exit 1 | |
| 16 | fi | |
| 17 | | |
| 18 | parent_path=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P ) | |
| 19 | node "$parent_path/../out/extension/openFileAtLocation.js" "$1" |