microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
cc7d2e1bd7c2985d11d65ac2268248b4e9fcbc2f

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

scripts/atom

22lines · modeblame

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