microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
scripts/atom
22lines · modecode
| 1 | #!/bin/node |
| 2 | |
| 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 |
| 9 | |
| 10 | Usage: |
| 11 | atom filename:linenumber |
| 12 | or |
| 13 | atom path/to/workspace/root filename:linenumber |
| 14 | |
| 15 | */ |
| 16 | |
| 17 | if (process.argv.length < 3) { |
| 18 | console.error("Missing filename"); |
| 19 | process.exit(1); |
| 20 | } |
| 21 | |
| 22 | require("../src/extension/openFileAtLocation"); |
| 23 | |