microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
scripts/atom
22lines · modeblame
0fc1f1deJimmy Thomson9 years ago | 1 | #!/bin/node |
514df4f4Patricio Beltran10 years ago | 2 | |
0fc1f1deJimmy Thomson9 years ago | 3 | /* |
| 4 | This script is called 'atom' to surpass the react-native | |
| 5 | editor selection. It has nothing to do with the atom editor. | |
| 6 | It can be safetly removed when the PR to support vscode in | |
| 7 | react native gets accepted: | |
| 8 | https://github.com/facebook/react-native/pull/7757 | |
514df4f4Patricio Beltran10 years ago | 9 | |
0fc1f1deJimmy Thomson9 years ago | 10 | Usage: |
| 11 | atom filename:linenumber | |
| 12 | or | |
| 13 | atom path/to/workspace/root filename:linenumber | |
514df4f4Patricio Beltran10 years ago | 14 | |
0fc1f1deJimmy Thomson9 years ago | 15 | */ |
| 16 | | |
| 17 | if (process.argv.length < 3) { | |
| 18 | console.error("Missing filename"); | |
| 19 | process.exit(1); | |
| 20 | } | |
| 21 | | |
| 22 | require("../out/extension/openFileAtLocation"); |